Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

geolocation

navigator.geolocation.getCurrentPosition(position => {
  const { latitude, longitude } = position.coords;
  // Show a map centered at latitude / longitude.
});
Source by www.w3.org #
 
PREVIOUS NEXT
Tagged: #geolocation
ADD COMMENT
Topic
Name
6+7 =