在卫星模式下绘制到 ItemizedOverlay MapView 时出现问题

发布于 2024-10-04 02:53:48 字数 296 浏览 0 评论 0原文

我继承了 ItemizedOverlay 来为我的项目绘制自定义图形,问题是我有 MapView 和带有列表项目的自定义覆盖...当我构造项目时,在“地图模式”中填充和绘制(setSatellite( false)) 效果很好,但是当我将模式更改为 setSatellite(true) 时,我的自定义叠加层包含所有项目,但不刷新、无效、重绘地图,我尝试调用所有这些方法,但什么也不调用。我也尝试,澄清覆盖并添加一个新的(非常糟糕),但什么也没有。任何人都知道当我更改设置 setSatellite true 或 false 时自定义覆盖会发生什么?

提前致谢。

i subclass the ItemizedOverlay to draw a custom graphics for my items, the problem is that i have the MapView and my custom overlay with a List items... when i construct the items, populate and draw in the "map mode" (setSatellite(false)) works good, but when i change the mode to setSatellite(true) my custom overlay holds all the items but not refresh, invalidate, redraw the map, i try invoking all those methods and nothing. i also try, claring the overlays and adding a new one (pretty bad) and nothing. Anyone knows what happens with the custom overlay when i change set setSatellite true or false?

thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

血之狂魔 2024-10-11 02:53:48

我已经解决了这个问题,问题出在活动层次结构上,因为我有一个 TabActivity 有两个子活动,一个处于地图模式,另一个处于卫星模式,并且逐项覆盖列表在活动之间不共享,实际上有两个不同的活动在选项卡小部件选择上启动的活动。

I already resolved this, the problem was on the activity hierarchy, because i have a TabActivity with two childs activity, one in map mode and the other in satellite mode and the list of itemizedoverlays was not shared between the activitys, indeed there are two distinct activitys launched on tab widget selection.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文