开发者

how to modify google maps navigator control style

开发者 https://www.devze.com 2023-01-19 00:57 出处:网络
i search through the google maps api reference, but they provide no met开发者_运维问答hod or property for creating a new type of navigation control. i wonder how to create navigator control like image

i search through the google maps api reference, but they provide no met开发者_运维问答hod or property for creating a new type of navigation control. i wonder how to create navigator control like image below.

how to modify google maps navigator control style


  1. First disable the defaultUI
  2. Add your custom control in the map like that
  3. Catch zoom events from the map(zoom_changed event) and notify your control and vice versa(map.setZoom())
0

精彩评论

暂无评论...
验证码 换一张
取 消