下拉菜单上的谷歌地图 [英] Drop down menu on Google Maps

查看:218
本文介绍了下拉菜单上的谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个下拉菜单在我的谷歌地图的上方,或一个菜单,我的谷歌地图的一面。此菜单将有选择,选择那些在地图上和中心选择标记周围的地图标记。有谁知道,这显示出任何教程,或者如何做到这一点?

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 marker. Does anyone know of any tutorials that show this, or how to do this?

推荐答案

定义菜单div标签。此菜单设定的现在的位置绝对和你需要设置的左侧和顶部的值。当你定义的div绝对该div可以显示在屏幕上任何地方。

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.

和你的菜单code投入到这个div的,所以你可以在屏幕上任意位置处设置菜单

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

这篇关于下拉菜单上的谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆