0

我一直在寻找,但没有找到解决问题的方法。由于我是编程这个地图的初学者,所以有点困难。

我知道如何显示地图、我的位置和一些重叠的项目。到目前为止,一切都很好。我的应用程序的一部分应该是包含几个不同 POI(兴趣点)组的地图,例如加油站、医院等。

如何让用户选择要显示的这些 POI 组的女巫。如果你能指点我一些教程或其他东西。我使用了android开发者网站上的所有东西。

谢谢

4

1 回答 1

1

Create them in different Overlay and dinamicly remove or add it to the map something like that

        if ( mapView.getOverlays().contains(weatherOverlay) ) {
            mapView.getOverlays().remove(weatherOverlay);
        }
        if ( weatherButton.isChecked() ) {
            mapView.getOverlays().add(weatherOverlay);
        }
于 2012-03-07T12:26:46.007 回答