2010-10-08 78 views

回答

3
  1. 首先disable the defaultUI
  2. 添加您的自定義控制在地圖上像that
  3. 從地圖(ZOOM_CHANGED事件)捕捉縮放事件,並通知你的控制,反之亦然(map.setZoom( ))
+0

鏈接中斷禁用UI https://developers.google.com/maps/documentation/javascript/examples/control-disableUI自定義控件https:// developers.google.com/maps/documentation/javascript/examples/control-custom?hl=fr – 2014-05-15 16:10:45