ankurrsinghal / svelte-legos

A framework for Svelte Utilities 💡 Current status: 87 utilities.
https://svelte-legos.surge.sh
MIT License
805 stars 29 forks source link

Geolocation #84

Closed Crisfole closed 1 year ago

Crisfole commented 1 year ago

Geolocation is very easy to implement as a store. Again: one of those browser APIs that was meant to be a store.

https://github.com/parkingboss/svelte-utils/blob/master/src/geo.ts

That code can be easily adapted.

ankurrsinghal commented 1 year ago

Sure let me check and I will add a new Utility for this, or if you like to take this forward I will be happy to merge your PR :).

Crisfole commented 1 year ago

I'm not using svelte-legos at the moment, but it looks great. Just wanted to point you at an implementation you can crib off of! Hope it helps!

bobbymannino commented 1 year ago

Isnt this added already? https://sveltelegos.com/guides/stores/geolocationStore/

Aim is to close as many issues as possile

bobbymannino commented 1 year ago

Can be closed