Skip to content
Simple leaflet control plugin for tracking gps position
JavaScript HTML CSS
Find file
Latest commit 8e6ac4a @stefanocudini update pkg .jg

README.md

Leaflet.Control.GPS

A leaflet control plugin for tracking gps position

Tested in Leaflet 0.7.3

Demos online:
labs.easyblog.it/maps/leaflet-gps

How to use

Adding the GPS Control to the map:

map.addControl( new L.Control.Gps() );

Debugging

I recommend a chrome extension: 'Manual Geolocation' for simulate gps device and set realtime position

Manual Geolocation

You can also use a dummy transform function:

var tinnedGps = { lat: 52.5, lng: -2.0 };
map.addControl( new L.Control.Gps( { transform: function(realGps) { return tinnedGps; } ) );

Where

Demos online:
labs.easyblog.it/maps/leaflet-gps

Source code:
Github
Bitbucket
NPM
Atmosphere

Something went wrong with that request. Please try again.