开发者

Drop down menu on Google Maps

开发者 https://www.devze.com 2023-03-19 07:18 出处:网络
I would like to create a drop down menu on top of my google maps, or a menu to the side of my google maps. This menu would have the options to select markers that are on the map and center the map aro

I would like to create a drop down menu on top of my google maps, or a menu to the side of my google maps. This menu would have the options to select markers that are on the map and center the map around the selected ma开发者_运维技巧rker. Does anyone know of any tutorials that show this, or how to do this?


You can find a working demo here. Check out the source code[CTRL + u] for impl. It's pretty straight forward.


for menu define div tag for menu. this menu set the postion as absolute and for that you need to set the left and top value. As you define the div as absolute that div you can display any where on the screen.

and your menu code put into this div so you can set your menu at anywhere on the screen


Start here http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls

0

精彩评论

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

关注公众号