Open StefanBrand opened 7 years ago
Doesn't Leaflet provide some method for this already?
Edit: Yes
map.locate({
setView: true,
});
map.locate({
watch: true,
});
Should we implement this, or do you think that we'd offset the privacy-aware part of the community? ;)
PS.: Maybe we should make a poll in the forum. This way we could invite the community to collaborate and also draw attention to the project.
Yes, privacy is a thing. I've read somewhere that Google is involved somewhat in the Firefox geolocation API… need to investigate further the drawbacks.
The poll is a good idea, but once we have the above info, :ok:
Edit: Google, I don't like you. "How does it work?" section: https://www.mozilla.org/en-US/firefox/geolocation/ (Why is Mozilla not usign their Ichnaea service?)
Edit2: Good to know I can manually drop Google Location Services in Firefox, at least ("Firefox Desktop" section): https://location.services.mozilla.com/apps
I for one never pass my location on to websites, but I'm sure there are people out there, who'd find it very convenient.
I'm still for the poll, as soon as the map has made it to the new Fairphone website ( https://fairphone.com ).
Yes, I agree for the poll. Convenient browsers let you decide to pass it or not, for privacy-concerned people (they will use one of these browsers for sure)
Doesn't Leaflet provide some method for this already?
There is even a tutorial now: http://leafletjs.com/examples/mobile/
Request location from browser and display a marker there + center map / zoom in.