leaflet-vector-layers
leaflet-vector-layers copied to clipboard
Race condition possibility when using esriOptions: true
When creating lvector.AGS with esriOptions: true, it starts an asynchronous AJAX query for layer options. If I call setMap() immediately after layer creation code, it causes _show() call on a partially initialized layer. This doesn't occur if I pass the map as an option when creating a layer but such behavior seems to be unclear.