Hello everyone,
I'm trying to develop a simple application that displays some points of interest on a MapView extending the ItemizedOverlay class to draw the points.
The problem is that when the number of points increases (now I have 20 points) the scrolling and the zooming of the map become extremely slow.
By doing a bit of debugging it seems that whenever I click on the screen is invoked the draw() method of ItemizedOverlay class, which redraws the whole map and points to it.
This continuous update, of course, slows down the application and makes it impossible to use the map itself.
I can't find any solution. Perhaps I should make sure that the draw method is not invoked so frequently? How? Do you have any suggestions to make the application faster?
Thanks for any suggestion
I'm trying to develop a simple application that displays some points of interest on a MapView extending the ItemizedOverlay class to draw the points.
The problem is that when the number of points increases (now I have 20 points) the scrolling and the zooming of the map become extremely slow.
By doing a bit of debugging it seems that whenever I click on the screen is invoked the draw() method of ItemizedOverlay class, which redraws the whole map and points to it.
This continuous update, of course, slows down the application and makes it impossible to use the map itself.
I can't find any solution. Perhaps I should make sure that the draw method is not invoked so frequently? How? Do you have any suggestions to make the application faster?
Thanks for any suggestion