Tag: 谷歌地图

我如何从我的原生应用程序中启动Google Maps iPhone应用程序?

Apple开发者文档 (现在链接已经失效)解释说,如果您在网页中放置链接,然后在iPhone上使用Mobile Safari时单击该链接,则会启动与iPhone一样提供的Google地图应用程序。 我如何才能在自己的本地iPhone应用程序(即不通过Mobile Safari的网页)中启动具有特定地址的Google Maps应用程序,方法与点击联系人中地址启动地图的方式相同? 注意:这只适用于本设备。 不在模拟器中。

在embedded式Google地图上停用鼠标滚轮缩放

我正在开发一个WordPress网站,作者通常在大多数post中使用iFrameembeddedGoogle地图。 有没有一种方法来禁用所有使用Javascript的鼠标滚轮缩放?

造型Google地图InfoWindow

我一直在尝试对我的Google地图InfoWindow进行样式设置,但文档在这个主题上非常有限。 你如何deviseInfoWindow ?

Google Maps API和标记之间的自定折线路线

我想为Android应用程序做一个自定义的路线,我不知道我应该使用哪个API,以及它是否与Java兼容。 据我所知,我需要使用航点来build立一条路线(我不需要知道两点之间的距离,只是做一个路线)。 目标是从地图侧面的菜单中select一个选项,并显示两个标记之间的自定义路线之一。

Google地图API – 获取最接近的邮政编码

首先,感谢您花时间考虑我的问题和您的帮助。 我正在使用Google Maps API v3和JavaScript将地图添加到网站。 我有一个地址列表,并成功地绘制在地图上。 当用户input一个邮政编码时,地图重新显示他们的位置,显示最接近该点的标记。 现在,我需要创build一个最近的3或5个位置的列表视图到他们的邮政编码与驱动方向的链接。 我被卡住了…并打开build议。 谢谢!

Google Maps API获取公交路线

这是我的情况,也许有人可以提供一个解决scheme的提示或者指出它不可能: 我有公交车经过的街道所定义的巴士路线,就像这样: W 49th St, 10th Ave, W 65th St, 79th Street Transverse Rd, 5th Ave, … 我想获取这些数据,并在Google地图中创build一个可视化路线。 我对Gmaps b4有一个小小的体验,但是只使用web服务来获取点之间的方向。 在这种情况下,使用这种方式的networking服务是无用的,因为如果我问路,考虑到每一个点(A,B,C)是一条街,GMaps创build一条从“第49街”到第10街中间的路线,到“W第65街”的中间 我想我可以做到这一点,如果有一种方法来获取地图数据,并通过导航地图和寻找最短的path给予一组街道自己创build路线。 我可以从Google地图获得这种信息,或者更容易做到这一点? 谢谢。

谷歌地图V3:绘制德国州多边形?

我需要在某些德国国家绘制彩色多边形。 什么是最好的方法(或最简单,最快,真的…)来做到这一点? 我是否需要以某种方式将所有轮廓作为纬度/经度点并根据这些点绘制多边形? 还是有更好的办法?

如何在每个Android应用程序/进程中使用多个MapActivities / MapViews

我写了一个MapActivity类,它能够显示一组地方以及单个地方。 启动时,应用程序创build此MapActivity一个实例并显示多个位置。 如果用户点击某个地方,则启动一个新的“ Activity ,显示所选地点的详细信息。 这个活动有一个菜单项,允许用户查看地图上的位置 – 这会导致创build一个新的MapActivity实例,除了现在只显示这个地方。 现在的问题是,如果用户导航回到第一个MapActivity (显示多个地方的那个),则不会再加载瓦片+有时会遇到OutOfMemoryErrors。 根据Android JavaDocs,每个进程只能有一个MapActivity 。 但是,我不想将我的MapActivity定义为singleInstance / singleTask,因为用户应该始终能够导航回显示多个位置的第一个MapActivity。 我已经看到,Google地图应用(与Google Map 4.4一起)为Android使用多个MapActivity实例。 这怎么可能? 我怎么能在我的应用程序中实现它?

使用PHP和谷歌地图Api找出两个邮政编码(英国)之间的距离

干草,我想知道如何使用PHP和Google Maps Api来计算两个邮政编码之间的距离。 任何人都有任何想法或链接的例子。

如何在地图片段API v2布局顶部添加button

我正在尝试使用API​​ v2在android中显示地图。 我想要一些像这样的UI。但是每当我尝试在布局中添加button时,它都不会反映在输出中 我能够得到没有button的地图 。 我需要button来整合像下面的地图 代码为Mylayout.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MapActivity" > <RelativeLayout android:layout_width="match_parent" android:layout_height="48dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <RadioGroup android:id="@+id/radio_group_list_selector" android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="center_horizontal|center_vertical" android:gravity="center_horizontal" android:orientation="horizontal" android:layout_weight="1" > <RadioButton android:id="@+id/radioPopular" android:layout_width="0dp" android:layout_height="match_parent" android:gravity="center_horizontal|center_vertical" android:text="@string/Popular" android:layout_weight="1" android:button="@null" android:background="@drawable/shape_radiobutton" android:layout_marginBottom="4dp" android:layout_marginTop="4dp" android:layout_marginLeft="4dp" android:textColor="@drawable/textcolor_radiobutton" /> <View android:id="@+id/VerticalLine" android:layout_width="1dip" android:layout_height="wrap_content" android:layout_marginBottom="4dip" android:layout_marginTop="4dip" android:background="#aaa" /> <RadioButton android:id="@+id/radioAZ" android:layout_width="0dp" […]