disable clickable landmark on google map

后端 未结 6 657
粉色の甜心
粉色の甜心 2020-12-03 06:56

I\'m using google map API v3. I want to disable click action on default google landmark/poi. For example, when I zoom to UCLA, the school icon shows up (that\'s fine) but I

6条回答
  •  不知归路
    2020-12-03 07:41

    add this option to mapOption clickableIcons: false

    this is more options i think you will

    draggable: true, // this is for disable the Draggable
    disableDefaultUI: true, // this for disable Default UI
    fullscreenControl: false, // this is for disable Full Screen
    scrollwheel: true, // this is for disable Scroll Wheel
    disableDoubleClickZoom: false, // this is for disable Double Click Zoom
    draggableCursor:'crosshair',// this is for cursor type
    draggingCursor:'move', // this is for dragging cursor type
    minZoom: 3, // this is for min zoom for map
    maxZoom: 18 , // this is for max zoom for map
    //note : max, min zoom it's so important for my design.
    zoom: 14, // this is to make default zoom
    clickableIcons: false, // this is to disable all labels icons except your custom infowindow or Infobox.

提交回复
热议问题