WeAreFairphone / fprsmap

This is a Leaflet map of the local Fairphoners communities
https://map.fairphone.community
GNU General Public License v3.0
10 stars 7 forks source link

Display user's location in map #10

Open StefanBrand opened 7 years ago

StefanBrand commented 7 years ago

Request location from browser and display a marker there + center map / zoom in.

Roboe commented 7 years ago

Doesn't Leaflet provide some method for this already?

Edit: Yes

map.locate({
    setView: true,
  });
map.locate({
    watch: true,
  });
StefanBrand commented 7 years ago

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.

Roboe commented 7 years ago

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

StefanBrand commented 7 years ago

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 ).

Roboe commented 7 years ago

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)

StefanBrand commented 7 years ago

Doesn't Leaflet provide some method for this already?

There is even a tutorial now: http://leafletjs.com/examples/mobile/