View Single Post
Old 05-17-2012, 10:07 PM   PM User | #1
bubbly
New to the CF scene

 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
bubbly is an unknown quantity at this point
Lightbulb Android: Remove specific point from ItemizedOverlay

So I built an app on Android which uses a map and ItemizedOverlay to display points/markers on it.
Code:
OverlayItem overlayItem = new OverlayItem(theGeoPoint, title, description);
itemizedOverlay.addOverlay(overlayItem);
mapOverlays.add(itemizedOverlay);
Is there a way to remove a specific point from the itemizedOverlay?

Example, say I've added lots of points at different latitudes/longitudes and I wish to remove a point at a specific latitude: 32.3121212 and specific longitude: 33.1230912, which was added earlier.

How can I remove JUST that point??

I really need this so I hope someone can help.

Thanks.

Full story scenario (in case you have a different idea on how to solve this): Adding events to a map that are caught from a database. Now when events are deleted from the database, I wish to sync the map and remove just those which were deleted. (please don't suggest I re-download all points excluding the deleted ones even though I've thought of that but it isn't an option concerning what I want to do. )
bubbly is offline   Reply With Quote