Leaflet Loading ... Spinner?

875 views
Skip to first unread message

Arnie Shore

unread,
Jul 10, 2013, 9:07:36 PM7/10/13
to leafl...@googlegroups.com
All, I can use a quite ordinary way of letting my users know that the
map is being rendered, pending that event's happy completion.

The spinner add-on's I've peeked at seem to have the coordinates
hardened in the code!

AS

Todd Albert

unread,
Aug 5, 2013, 3:11:34 PM8/5/13
to leafl...@googlegroups.com

I use a div on top of the map with a spinning "loading animation". When I start loading new data, I .show() the layer. Once it's loaded, I .hide() the layer, all with JQuery.

For example:

$('#maploader').show();

$.get("/loadStuff.php", {parameter: value}, function(data){

// do stuff

$('#maploader').hide();

}, "json");


d...@danrunfola.com

unread,
Aug 5, 2013, 3:57:49 PM8/5/13
to leafl...@googlegroups.com
Check out jquery blockUI, which is my current module of choice for this:

Reply all
Reply to author
Forward
0 new messages