
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to best display HTML5 geolocation accuracy on a Google Map?
To display HTML5 geolocation accuracy on a Google Map, use the following code −
var lat = position.coords.latitude; var longitude = position.coords.longitude; var accuracy = position.coords.accuracy; var center = new google.maps.LatLng(lat, longitude); var a = new google.maps.Marker({ position: center map: icon: }); var mySphere = new google.maps.Circle({ center: centerPosition, radius: accuracy, map: fillColor: fillOpacity: strokeColor: strokeOpacity: }); map.fitBounds(mySphere.getBounds());
- Related Questions & Answers
- How to use HTML5 GeoLocation API with Google Maps?
- How to show current location using HTML5 Geolocation with Google Maps?
- How to show current location on a google map on Android?
- How to show current location on a Google Map on Android using Kotlin?
- Python script to open a Google Map location on clipboard?
- How to handle Geolocation errors in HTML5?
- How to use geolocation coordinates in HTML5?
- How to find position with HTML5 Geolocation?
- How do I get an address latitude-longitude using HTML5 Geolocation or Google API?
- How to use HTML5 Geolocation Latitude/Longitude API?
- Plotting Data on Google Map using pygmaps package?
- HTML5 Geolocation without SSL connection
- HTML5 Geolocation in Safari 5
- World Map on HTML5 Canvas or SVG
- How to detect touch and its position on Google map in Android?
Advertisements