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

前端 未结 3 1694
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:29

    Use icon inside marker like

        var Marker = new google.maps.Marker({
            map: map,
            animation: google.maps.Animation.DROP,
            position: "",
            icon: /bluedot.png
    });
    

    you can use this google map location indication circular blue dot icon similar to the google map

提交回复
热议问题