Select to view content in your preferred language

Full extent

642
1
09-29-2011 12:18 PM
JerryBiedenbender
Emerging Contributor
Hello,

   I am using the toolbar from the Silverlight samples in the resource center and cannot figure out how to make the "Full extent" tool work. My zoom in, Zoom out, and pan work fine, but I cant get the Full extent, previous extent, Next extent, or full screen to work. Any advice on any of these but mainly the full extent would be very helpful.

Thanks,
Jerry
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolBarWidget

In this sample, a pan/zoom will cause Map.Extent to change, enabling previous extent. When you click previous extent, Map.Extent becomes the old extent, thus enabling next extent. When you zoom in and don't have a full view of the map, clicking full extent will bring back the full view of the map.

If none of these buttons seem to work, you can debug to see if MyToolbar_ToolbarItemClicked code is reached.
0 Kudos