mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
center on user location
This commit is contained in:
parent
0f368b189f
commit
d39ec1588c
6 changed files with 149 additions and 4 deletions
5
src/utils/geolocation.js
Normal file
5
src/utils/geolocation.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
export const getUserLocation = callback => {
|
||||
if (!navigator || !navigator.geolocation) return;
|
||||
|
||||
navigator.geolocation.getCurrentPosition(callback);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue