node package manager

leaflet-gps

Leaflet Control plugin for tracking gps position, with more options

Leaflet.Control.GPS

A leaflet control plugin for tracking gps position

Tested in Leaflet 0.7

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

Where

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

Source code:
Github
Bitbucket
NPM
Atmosphere