Skip to content

gabe1314/leaflet-gps

 
 

Repository files navigation

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

About

Simple leaflet control plugin for tracking gps position

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.7%
  • HTML 15.6%
  • CSS 13.7%