我需要检查新创建的OverlayItem的数据是否已经存在于已经显示在地图上的OverlayItems列表中。我编写了一段代码来检查OverlayItem的数据是否已经存在,但我遇到了一个错误。如何从覆盖图中提取OverlayItem?我现在的代码是这样的:
//where mapOverlays = mapView.getOverlays() and overlayItem is the newly created overlayItempublic boolean isExisti
我想将除标题和片段值以外的其他值传递给OverlayItem,通过一些搜索,我发现为OverlayItem创建子类可能是解决方案。但我不知道怎么写。List<Overlay> overlays = mapView.getOverlays();
// The custom of overlayItemOverlayItemoverlayItem = new CustomItem(mallCoords[i], name, strRetu