MapSuite Team,
Using the PanZoomBar to ZoomIn or ZoomOut the map will first stretch and then immediately begin drawing. I am attempting to achieve the same visual effect programmatically. I have my own separate Zoom In/Out Features and cannot get these to work in the same visual fashion as the PanZoomBar.
I have attempted using ZoomIn, ZoomOut, ZoomToScale, ZoomInToCenter, ZoomOutToCenter, etc. and am unable to achieve the same visual effect.
Invoking any of the above methods the map will stretch, as it should, and then there is a 2-3 second lag before it starts to draw.
How does the PanZoomBar achieve the stretch followed with immediate draw? Would you share some code with me so that I can achieve the same result?
I have three overlays, one for MrSid’s, one for SQLite layers, and one for Shape File layers. All are set to Stretch, MultipleTile, 512x512.
Thanks,
Dennis
PanZoomBar Zoom vs Programmatic Zoom
Hi Dennis,
Thanks for your detailed description, I guess there are 2 reasons why you have this question, please allow me to outline them as following with its reply:
1. Maybe the default Map Suite PanZoomBar is not good enough, you may need a better style, in that cause, a possible solution is creating the customized “theme” and apply it to map control. If in that case, please have a try or let us know, we may paste some hints here.
2. The zoom in/out feature of your application is completely separated from map control. If that’s true, I guess you are in the right way, but the weird is that the built-in Map Suite PanZoomBar does call the ZoomIn and ZoomOut method of map control only, seems like no differences with your code (based on your description). Would you please attached a demo or record a video for us to show what you are encountering?
Thanks,
Johnny