Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
dont ask for layer metadata twice (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois authored Aug 17, 2016
1 parent 08835ff commit ebf859e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"John Gravois <[email protected]>"
],
"dependencies": {
"esri-leaflet": "^2.0.0-beta.8",
"leaflet": "^1.0.0-beta.2",
"esri-leaflet": "^2.0.0",
"leaflet": "^1.0.0-rc.3",
"leaflet-shape-markers": "^1.0.4"
},
"devDependencies": {
Expand Down
14 changes: 0 additions & 14 deletions src/FeatureLayerHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,4 @@ L.esri.FeatureLayer.addInitHook(function () {
}
rend.attachStylesToLayer(this);
};

this.metadata(function (error, response) {
if (error) {
return;
} if (response && response.drawingInfo) {
// if drawingInfo from a webmap is supplied in the layer constructor, use that instead
if (this.options.drawingInfo) {
response.drawingInfo = this.options.drawingInfo;
}
this._setRenderers(response);
} if (this._alreadyAdded) {
this.setStyle(this._originalStyle);
}
}, this);
});

0 comments on commit ebf859e

Please sign in to comment.