This project is read-only.

any help for animating the map?

Sep 18, 2008 at 4:37 AM
Edited Sep 18, 2008 at 4:38 AM
I'm trying to animate the Layer map moving between points. I have points as lat/long, and although I can see some conversion routines in the code to go from lat/long to pixel, I'm not exactly sure how to use these pixel coords. I'm trying to achieve the animation using calls to ZoomAndInvariantLocal() and possibly an automated version of what the mouse handler routines do for dragging the map. However, I get wierd results in that the map never seems to end up where I think it should. Probably I don't understand what routines I should call to do this. Any advice?

Nov 23, 2008 at 2:30 PM
There was missing an API for moving the layer. I've just checkin the SetTopLeftPoint function in order to animate the move of a map. In order to zoom, you can use the ZoomAndInvariantLocal function. You can have a look at the PageLayers code in the showcase for a sample.
Sorry for the delay but I was not monitoring the discussions. I've fixed it and I will reply quicker now ;)