任何人实施的BalloonItemizedOverlay(具有多个点)在成功? [英] Anyone implemented the BalloonItemizedOverlay (with multiple points) successfully?

查看:240
本文介绍了任何人实施的BalloonItemizedOverlay(具有多个点)在成功?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白这一点。我可以成功地绘制一个点与BalloonItemizedOverlay,但是,当我绘制多个点,背景从街景到了坚实的海洋蓝的颜色切换。在标记上覆盖绘制正确,我可以点击标记和它做什么它告诉,但我只是不明白为什么我的街景消失,获得由海蓝色背景取代。任何人碰到这个?我究竟做错了什么?我注意到,当它到达animateTo()命令,切换到蓝色。

i don't get it. i can plot one point successfully with the BalloonItemizedOverlay, however, when i plot multiple points, the background switches from a street view to a solid ocean blue color. the markers are plotted correctly on the overlay and i can click on the markers and it does what it's told, but i just don't get why my street view disappears and gets replaced by a ocean blue background. anyone else run into this? What am i doing wrong? I noticed that when it gets to the animateTo() command, it switches to blue.

List<Overlay> mapOverlays = mapView.getOverlays();
Drawable drawable = getResources().getDrawable(R.drawable.marker);
LocatorItemizedOverlay itemizedOverlay = new LocatorItemizedOverlay(drawable, mapView);

for (SingleLocation mloc : Locations)
{
  String strLocationAddress = mloc.AddressLine1 + ", " + mloc.City + ", " + mloc.State + "  " + mloc.ZipCode;
  point = new GeoPoint((int) (Double.parseDouble(mloc.Longitude) * 1E5),(int) (Double.parseDouble(mloc.Latitude) * 1E5));

  overlayItem = new OverlayItem(point,mloc.LocName,strLocationAddress);
  itemizedOverlay.addOverlay(overlayItem);
} 


mapOverlays.add(itemizedOverlay);
mapView.getController().animateTo(point);
mapView.getController().setZoom(10);

推荐答案

要转换应该是* 1E6,不1E5。你的观点可能是出在海洋的某处。你可以放大出来看看?

To convert it should be * 1E6, not 1E5. Your points are probably out in the ocean somewhere. Can you zoom out to see?

这篇关于任何人实施的BalloonItemizedOverlay(具有多个点)在成功?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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