Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display user's location in map #10

Open
StefanBrand opened this issue Sep 8, 2016 · 6 comments
Open

Display user's location in map #10

StefanBrand opened this issue Sep 8, 2016 · 6 comments

Comments

@StefanBrand
Copy link
Contributor

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

@Roboe
Copy link
Member

Roboe commented Sep 10, 2016

Doesn't Leaflet provide some method for this already?

Edit: Yes

map.locate({
    setView: true,
  });
map.locate({
    watch: true,
  });

@StefanBrand
Copy link
Contributor Author

StefanBrand commented Sep 11, 2016

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
Copy link
Member

Roboe commented Sep 11, 2016

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, 🆗

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
Copy link
Contributor Author

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
Copy link
Member

Roboe commented Sep 21, 2016

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
Copy link
Contributor Author

Doesn't Leaflet provide some method for this already?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants