mr-islam / layl

DEPRECATED: see new

Home Page:https://github.com/mr-islam/layl-pwa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imrpove geolocation with high accuracy

mr-islam opened this issue · comments

use the final snippet from here https://webplatformcourse.com/preview/9-geolocation-api/ :

navigator.geolocation.getCurrentPosition(position => {
  console.log(position)
}, error => {
	console.error(error)
}, {
  timeout: 1000,
  maximumAge: 10000,
  enableHighAccuracy: true
})

unnecessary