leaflet-vector-layers icon indicating copy to clipboard operation
leaflet-vector-layers copied to clipboard

Callback function when loading JSON

Open dmeehan opened this issue 12 years ago • 4 comments

Can there be (or is there already) a way to introduce a callback when JSON data has started/finished loading. I would like to add a 'loading' indicator each time a new dataset is waiting to load into the map.

dmeehan avatar Feb 08 '13 00:02 dmeehan

To be clear, you want a loading event for the initial load of the layer or for every time more features are fetched? (Each pan and zoom)

JasonSanford avatar Feb 08 '13 01:02 JasonSanford

My use case if for everytime more features are fetched.

dmeehan avatar Feb 08 '13 04:02 dmeehan

:+1: my use case would be to be able to adjust the symbology definition depending on the data loaded.

kbsali avatar Oct 09 '13 15:10 kbsali

@dmeehan @dzwarg 's PR #37 does the job actually

kbsali avatar Oct 09 '13 15:10 kbsali