JasonSanford / leaflet-vector-layers

A little help to viewing ArcGIS Server, Geocommons, Arc2Earth, CartoDB, GIS Cloud, etc. vector data in a Leaflet map
http://jasonsanford.github.io/leaflet-vector-layers
BSD 2-Clause "Simplified" License
216 stars 61 forks source link

Callback function when loading JSON #34

Open dmeehan opened 11 years ago

dmeehan commented 11 years ago

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.

JasonSanford commented 11 years ago

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)

dmeehan commented 11 years ago

My use case if for everytime more features are fetched.

kbsali commented 11 years ago

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

kbsali commented 11 years ago

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