Every time I remove places from the map using the
removeAllPlaces() method, the places are removed but the images still there. I call the repaint() method but nothing changes. The places are only removed when I change the zoom or move the map...
Any help will be appreciated :)
Sorry, maybe my explanation was not so good :).
I try to remove the images that represent the places (an icon representing an hotel...) from the map screen. When I call the removeAllPlaces() method the places are removed (the user can not interact more with the places, click on a place etc...) but the images (that represent the places still there). I was hopping that calling repaint() will solve the problem, but the places are only removed after I zoom in/out or move the screen.
Maybe is something wrong with my code, but if someone has the same problem any help will be appreciated.
Two images are attached to clarify the problem.
Thanks.
showing Places
After removeAllPlaces: The image representing the places still showing, but the places are not there...
I have found a workarround, is not the best way, but works for me: Zoom out and in faster to force the map to repaint
mapDisplay.setZoom(mapDisplay.getZoom()+1);
mapDisplay.setZoom(mapDisplay.getZoom()-1);
Cheers!
Actually there it was a bug in library with this method. Please take a look to latest PA version from http://nutiteq.com/beta/lib , it should be fixed there.
I do not understand really: what images are there when places are removed? From where they are removed ?
/JaakL