ynunokawa / L.esri.WebMap

A leaflet plugin to display ArcGIS Web Map.
MIT License
22 stars 21 forks source link

FeatureLayer does not appear after initializing #57

Closed ynunokawa closed 8 years ago

ynunokawa commented 8 years ago

I guessed at first that the position to run oldOnAdd in esri-leaflet-renderers is the cause of this issue. But lots of features in debug/sample.html (of esri-leaflet-renderers) draw with Leaflet's default marker symbol if fix it (see Esri/esri-leaflet-renderers#125).

It can be reproduced in L.esri.WebMap demo.

fl-renderers-bug

There are three points about this.

ynunokawa commented 8 years ago

FeatureLayer in L.esri.WebMap does not run onAdd in virtual-grid.js (leaflet-virtual-grid) when initializing it.

ynunokawa commented 8 years ago

I guess that esri-leaflet-renderers imported into FeatureCollection of L.esri.WebMap overwrite onAdd of L.esri.FeatureLayer before reading esri-leaflet-renderers with <script>.