Change map opacity outside circle of Google Maps JavaScript API v3

后端 未结 3 1838
我寻月下人不归
我寻月下人不归 2020-11-28 14:35

So I\'m currently putting a circle on my map:

    var optionsCercle = {
        center: latlang,
        map: map,
        radius: 1000,
        fillOpacity:         


        
3条回答
  •  醉话见心
    2020-11-28 15:17

    Draw a circle in the opposite location and complement radius like

    {-Lat, (Long-180)%180, 20037508.34-Radius}
    

提交回复
热议问题