Google Maps API V3 custom controls position

前端 未结 4 1001
梦毁少年i
梦毁少年i 2020-11-30 03:52

I\'ve read docs about positioning controls on the map(TOP, TOP_LEFT, etc), but Is there any way to make custom position? For example: left: 2

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 04:38

    You can create a custom control for your logo, and add it to the map to position it. You can't set the location of the control directly beyond the constants, but you can offset the location using padding on your control div.

    http://code.google.com/apis/maps/documentation/javascript/controls.html

提交回复
热议问题