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
精彩评论