ZoomStarted/ZoomEnded/ViewChanged events don't actually map to proper VE mapping events

Jul 23, 2008 at 4:09 AM
Edited Jul 23, 2008 at 4:30 AM

Hey guys,

This is a difficult problem that I know will not be an easy one to solve ....

In your Map.cs where your mapping the VE Map events to the MSI events you have the following logic ..



The problem here is that you are getting multiple ZoomStarted events being raised one after the other because the msi.viewportchanged was raised many times before the MotionFinished. You may need to work out a more elegant event model then relying on ViewportChanged / MotionFinished on the MSI.

ps. I'm encountering this issue because im trying to override the ZoomStarted and ZoomEnded for my own purposes BUT am getting multiple starts before an end ..

The whole Zoom Started/Ended and Pan Started/Ended is pretty solid in the VE mapping plugin unfortunately it doesn't translate very easily into the MSI version because there is just no easy way to know when a Zoom Finished or a Pan finished (or is there?????)

Definetely a difficult problem to solve :)