Hi,
I have couple of questions about setting Scale property of ZoomLevelSet
1-What’s the lowest value we can assign to it?
On attached project: Press apply and then try to press ZoomIn button it will stop on 1:250(ZoomLevel 10),but I want scale as low as 1:1
2- What’s relation between two Scale in neighbour ZoomLevel, it should be always twice/half the lower level? or we can have something like 10,20,30,40,60,100,150,200(custom random Scale)
Regards
Change Scale Property of ZoomLevelSet
Hi Behnam,
Technically, I guess any value which is bigger than 0 should
be fine. For the definition of zoom
level scales, it can be any customized values, such as 1, 10, 20, 30, 40, 60,
100, 150 etc. Please check the attached sample.
Thanks,
Johnny
Hi,
I ran attached project but as soon as I press Apply button, It zooms in and out automatically until it crash.
Exception is : {Cannot evaluate expression because the current thread is in a stack overflow state.}
I tested it with version 7 & 8 libraries and both of them have this issue.
Regards,
Hi Behnam,
I can reproduced the in & out automatically in early version, please get the latest daily build version, so that it will works correct.
Regards,
Don
Hi,
I test it with 8.0.0.246 and problem still exists(Zoom In/Out Problem).
Regards,
Behnam
Hi Behnam,
Please get 8.0.246.0 but not 8.0.0.246. The 246.0 contains many enhancement and fix which are not included in 0.246.
Regards,
Don
Hi Don,
Thanks for your prompt reply, using latest version of library fix zoom in/out issue but still has main problem which can not zoom in more than 1:200 level.
Regards,
Ben
Hi Ben,
I am sorry, it looks the code need one more line:
WpfMap.MinimumScale = 1;
That will works now.
Regards,
Don