Name: Leaflet.Spin
Owner: Makina Corpus
Description: Show a spinner on the map using Spin.js
Created: 2013-03-04 14:49:38.0
Updated: 2017-12-29 12:10:45.0
Pushed: 2016-11-30 13:19:38.0
Homepage: http://makinacorpus.github.io/Leaflet.Spin/
Size: 855
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Shows a nice spin cursor on the map. See online demo.
This plugin requires Spin.js.
install leaflet-spin
r install leaflet-spin
Download the latest release and include it in your app
This plugin can be loaded with AMD/CommonJS.
spin(true); // on
spin(false); // off
You can control apparence of wheel by passing options on first spin()
call.
spin(true, {lines: 13, length: 40});
More details on available options…
spin(true);
ax({url: 'http://server/api/'})
e(function() {
p.spin(false);
or(function () {
p.spin(false);
Using events:
layer = L.geoJson(null).addTo(map);
r.fire('data:loading');
tJSON('http://server/path.geojson', function (data) {
layer.fire('data:loaded');
layer.addData(data);
layer = L.geoJson.ajax();
r.addUrl('http://server/path.geojson');
You can use example folder for testing.
run release # minify js and copy leaflet.spin.min.js in example folder
run deploy # deploy to gh-pages
Update export and extend system
Update structure with official Leaflet plugin rules
Update bower dependencies
Initial version