Hi,
I’ve tried to set the WPF map control’s MapResizeMode to MapResizeMode.PreserveExtent, but it works like in the PreserveScaleAndCenter mode.
To reproduce the issue, I’ve added one line to your HelloWorld_WPFDesktop -> Window_Loaded code sample:
…
wpfMap1.MapResizeMode = MapResizeMode.PreserveExtent;
wpfMap1.Overlays.Add(layerOverlay);
wpfMap1.CurrentExtent = new RectangleShape(0, 78, 30, 26);
wpfMap1.Refresh();
What do I need to do to make it work in the PreserveExtent mode?
Thank you,
Gene
MapResizeMode = MapResizeMode.PreserveExtent does not work as expected
Hi Gene,
I think it should be a bug, I will let our developers knows the bug.
Any update we will let you know.
Regards,
Don
Hi Gene,
It has been fixed in the latest version 9.0.91.0(9.0.0.91) or later, both in Production and Development branch. Please take it and have a try.
NOTE: the latest version is still in building now, maybe you need to wait for hours.
Thanks,
Johnny
I’ve downloaded the WPF Desktop Daily Full Development version 9.0.93.0 and changed my project refernces to the new version.
I don’t think the PreserveExtent mode works as expected. It is still works like PreserveScaleAndCenter.
Thanks,
Gene
Hi Gene,
Please get the 9.0.98.0 or higher version, and see whether that solved.
Regards,
Don