Hi,
is it possible to intercept the pan event of Pan/Zoom Bar?
Any suggestions?
Thanks,
Azzurra.
Hi,
is it possible to intercept the pan event of Pan/Zoom Bar?
Any suggestions?
Thanks,
Azzurra.
Hi Azzurra,
In PanZoomBarMapTool, we handle the pan functions internally and don't expose any events for panning. Could you please tell us what's your objective to intercept the PanZoomBarMapTool's pan event?
Regards,
Ivan
Hi Ivan,
my application receive GPS data and update the position on the map. The map is centered under the GPS signal and rotated so that the direction of the vehicle symbol is always north. When user clicks pan button, I would stop tracking and rotate functions.
Azzurra.
Azzurra,
Thanks for your post and feedbacks; we have a couple of things not very clear yet.
It seems we have two ways to update the extent of the map control; one is automatic when the GPS location changed, I am curious that if this process is automatic when each new GPS signal comes in? And when it is updated, are we using the CenterAt API to center new GPS location as the center of map control? The other way is from the user’ operation by dragging the Pan/Zoom Bar, what is the case when the user wants to do this?
Besides, just let you know that we have two events related with the current extent update; the changing event will be fired before the extent changed, and the changed event will be fired after the extent changed.
wpfMap1.CurrentExtentChanging
wpfMap1.CurrentExtentChanged
Any more questions please feel free to let me know.
Thanks.
Yale
Hi Yale,
the update of the map is automatic when the GPS location changed, I use the CenterAt function.
The events related with the current extent update fire whenever map is updated, how I do recognize that is clicked pan button?
Thanks,
Azzurra
Azzurra,
Thanks for your post and response.
I guess that is why I am curious how you automatically update your GPS location when it is changed, why not make it recognized as extent changed by GPS location. In this way, in the CurrentExtentChanged event, we can tell if the extent changes is caused by GPS location change or user pan button click. As Ivan said, we did not expose any events for panning for now.
Any more questions or discussions please feel free to let me know.
Thanks.
Yale