Neat plugin. Seems to be more complex to do this than you'd expect.
I have a basemap that's geojson data with many objects. There's also another (non-geojson) baselayer. The loading indicator is fine if the base-layer starts as the geojson, but when switching back to the geojson baselayer, the loading indicator appears and never disappears.
The problem seems to be that inside _handleBaseLayerChange the plugin runs addLoader for each child layer (as GeoJSON loads as a group). But they are then never triggered. Don't know why.
I worked around this by simply disabling it for LayerGroups:
Neat plugin. Seems to be more complex to do this than you'd expect.
I have a basemap that's geojson data with many objects. There's also another (non-geojson) baselayer. The loading indicator is fine if the base-layer starts as the geojson, but when switching back to the geojson baselayer, the loading indicator appears and never disappears.
The problem seems to be that inside
_handleBaseLayerChange
the plugin runsaddLoader
for each child layer (as GeoJSON loads as a group). But they are then never triggered. Don't know why.I worked around this by simply disabling it for LayerGroups:
but it's a weak solution