Hello.
I am looking for an event to indicate that the map scale is about to change, before any visual scaling happens. I have been using the CurrentScaleChanging event, but it is actually triggered after the old zoomlevel bitmaps are stretched to make the visual transition between the zoomlevels. I can make a hack solution by listening to the PreviewMouseWheel event, but I would of course prefer a dedicated event. Does something like that exist? If not, how can I persuade you to make it?
My use case, if you want to know:
I am trying to put a WPF based feature editing tool onto a map as a marker. To be more precise: i want to edit a feature on an InMemoryFeatureLayer, and I want the edit tool to be WPF, so I am using a custom Marker on a SimpleMarkerOverlay. The edit tool should fill the same area as the feature on the map. When zooming, I recalculate the wpf edit tool on the CurrentScaleChanged event. It actually works pretty well, but I would like to hide the wpf tool during the zoom transition, because it looks weird that it stays the same size while everything else is transitioning (stretching bitmaps) to the new zoomlevel.
Pre-scaling event
Hi Jonas,
I think we don’t have an event which can be fired before that.
Do you think that’s possible to close the transition effect so it will looks better?
You can do that like this: yourOverlay.TransitionEffect = TransitionEffect.None;
Regards,
Don
Hi Don, thanks for your reply.
I do not want to turn off the transition, it is important for the user experience.
I have added this as a proposal on the enhancement tracker page.
Is there anything else I can do to get this event in a future version of ThinkGeo?
Hi Jonas,
Thanks for let us know your requirement via our enhancement tracker system.
I am not sure whether we will implement that, but I think our development team will think about it.
Regards,
Don