How to highlight a user's current location in google maps?

前端 未结 3 1691
Happy的楠姐
Happy的楠姐 2020-12-09 12:47

I am using following code to get the location of user in phonegap (it works fine)

function getLocation() {
    var win = function(position) {
        var lat         


        
3条回答
  •  感情败类
    2020-12-09 13:23

    You can use the newly released GeolocationMarker which is part of the Google Maps API Utility Library.

    It will add a marker and accuracy circle at the user's current location. It also allows a developer to customize the marker using the setMarkerOptions method and specifying an icon property.

提交回复
热议问题