Hello,
I have a problem with the zoom levels:
So now Comes my problem:
I have a button which has the exact code from the “Full Extent” button from the Map Suite Explorer. (wiki.thinkgeo.com/wiki/Sourc…ainForm.cs) So basically I do this:
map.CurrentExtent = GetFullExtent(map);
So now comes my problem:
In the Map Suite Explorer my Shape-File fits now perfectly the map size after hitting my Full Extent button, but in my application it does not fit the Shape in the map.
I assume the problem are the zoom levels. The next zoom Level seems to be too big for the new extent so the map does not change my layer visual extent.
I need a method to get the new scale after setting the currentExtent. If I refresh the map after setting the new extent I will get only the old scale.
After getting the new scale I can build with it new custom zoom levels.
Somehow the Map Suite Explorer seems to have much more than 20 Zoom Levels.
My goal is to have the exact same behaviour as the “Full Extent” button in the Map Suite Explorer with my own button.
I hope you can help me.
Daniel