I have an iOS app using route-me to display a static map and place markers on it. The markers are created during the viewWillAppear method of the viewController. This works perfectly; the map and markers appear correctly; zooming and panning work.
However, if I add or delete markers, the added markers do not appear nor do the deleted markers disappear. I have tried using the [RMMarkerManager removeMarkers] method, followed by adding back into the markerManager the markers I want displayed on the app. this has no affect; the original markers remain.
After updating the markerManager with a new set of markers, I can iterate through viewMap.contents.overlay.sublayers and see a sublayer for each marker that I want to display. That makes me think that the problem is that the mapView is not updating correctly, since those sublayers never are displayed.
Any idea why the markers do not display correctly?
I realize this is a very simple - and maybe inadequate - explanation of the problem. I can supply code and more explanation, but I'm hoping there is some simple thing I've stupidly overlooked. Thanks for any and all help.
John