Select to view content in your preferred language

Override basemap maximum scale?

3126
5
Jump to solution
06-01-2012 10:33 AM
KarenEllett
Regular Contributor
Is it possible to alter the code in the Map.xml file (or elsewhere) to force the application to allow the user to zoom in farther than the basemaps limits?  I understand that the basemap wouldn't display or look right, but we have some very intricate, high res spatial relationships that need to be displayed.  Currently I can't get it to zoom in enough. 

(I apologize for yet another question!  I promise that I scour the forums, the internet, and all resources I can trying to figure it out myself before I bother you guys.)

Thanks!
0 Kudos
1 Solution

Accepted Solutions
JeffMcConnell
Occasional Contributor
Try setting the minimum resolution of the map in a behavior or a tool.

MapApplication.Current.Map.MinimumResolution = Double.Epsilon;


Thanks,
Jeff

View solution in original post

0 Kudos
5 Replies
JeffMcConnell
Occasional Contributor
Try setting the minimum resolution of the map in a behavior or a tool.

MapApplication.Current.Map.MinimumResolution = Double.Epsilon;


Thanks,
Jeff
0 Kudos
KarenEllett
Regular Contributor
Works like  a charm.  Thanks Jeff!
0 Kudos
NancyGnanicys
Deactivated User
<<<Very new to Silverlight Viewer, could someone direct me to where to find this in my application?  I went to Inetpub/wwwroot\Applications\TESTApp\Config and then opened my Map XML document, did a search for the
"MapApplication.Current.Map.MinimumResolution = Double.Epsilon;" as Jeff mentioned and found nothing written that matches even "MapApplication".>>>>

Nevermind, I figured it out, I just deleted all of the extent and Esri Tiled map services from it since I have a basemap already and that took out the maximum zoom extent since my basemap allows for zooming in very closely.
0 Kudos
WilliamKaptein
Deactivated User
I want this also but i cant get it to work. Can someone explain to me step by step how to do this ?

Thanks
0 Kudos
DanielMcCormick
Occasional Contributor
Would like detailed steps to implement this as well.

Thanks!
0 Kudos