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).
I guess that esri-leaflet-renderersimported into FeatureCollection of L.esri.WebMap overwrite onAdd of L.esri.FeatureLayer before reading esri-leaflet-renderers with <script>.
I guessed at first that the position to run
oldOnAdd
inesri-leaflet-renderers
is the cause of this issue. But lots of features indebug/sample.html
(ofesri-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.
There are three points about this.