地图上的额外折线显示任意两个标记

时间:2016-01-13 04:22:25

标签: android google-maps google-maps-markers google-polyline

我有一个关于Google Map的问题,这个问题也在使用它的网站上。我在这些标记之间放置two markers和路线,使用我在这两个位置之间移动,跑步或行驶时收集的latitudelongitude

问题是在poly-line上放置的任何marker之间会产生额外的map。这是一条直线,表示两个markers之间的最短距离,我不知道它来自哪里。

这是我想删除的不受欢迎的poly-line。在我的设备上,我看不到这个line,我的客户和我的web-site开发人员报告说,poly-line会自动在地图中绘制,其中没有为其编写代码。< / p>

map applicationAndroid device在网络上分享的map的快照:

Snap shot of map that I have shared on web from my application on Android device

我的客户在其他application设备上Android在网络上分享的TP = googleMap.addMarker(new MarkerOptions().position(TutorialsPoint).icon(BitmapDescriptorFactory.fromResource(R.drawable.markers))); TP1 = googleMap.addMarker(new MarkerOptions().position(TutorialsPoint1).icon(BitmapDescriptorFactory.fromResource(R.drawable.markers))); if (polyLineOptions != null) { googleMap.addPolyline(polyLineOptions); } 的快照:

Snap shot of map that my client has shared on web from my application on some other Android device

这可能是特定于设备的,因此我向客户请求了设备信息。

这是我正在使用的代码:

polyLineOptions

此处arraylatitudes longitudeslatitudes的{​​{1}}。发送到服务器时,我会以longitudes的形式发送这些JSONlatitudes

从服务器接收这些longitudesJSON时,我会以类似array的形式获取它们,我用它们转换为latitudes longitudes {}}和running activity用于同一googleMap.addPolyline*方法。当我查看我们方面时,问题并没有发生。

请告诉我们有什么方法可以删除此折线,如果它在您的最后再现?

0 个答案:

没有答案
相关问题