Closed PVince81 closed 10 years ago
@brantje can you check this out?
@PVince81 this needs rebasing. :)
Afaik we already load the current GPS location. But this solution seems neat to me =). Will check it out asap.
Possibly but I find having that button to center on the current position to be neat. In the previous version it always showed me some place in the USA, never my current position.
Ok, rebased.
Now I see that you already added GPS support after I submit my PR :smile: Up to you to decide whether you want that extra layer or not.
I find it nice to have a button I can click to recenter on the current position.
What would be really cool is also to cache that location for further loads instead of always starting out in Denver. Automatically get to the location instead of needing to press a button. See #7
Fixed with 963a89174ef565f6033779ee84ce235aadc0adab
@brantje when closing pull requests, please make sure to press the »Delete branch« button here as well. :)
Added leaflet-gps layer for GPS position: https://github.com/stefanocudini/leaflet-gps
The original source code of the library needed to be split into separate folders for ownCloud to be able to load them.