The SetScale control is a custom control allowing the user to change the map scale. The control allows the user to either choose from one of the pre-set scales, or to choose the "Other" option and enter their own scale. The developer can easily change the pre-set scales to include scales that might be better suited to their map. Feel free to customize the control as necessary.
The control requires the MapBuddyId parameter to be set, which is the name of the map to change the scale on. If the parameter is not set, it defaults to "Map1".
Usage is kept relatively simple:
1 - Add the SetScale.ascx file to your project
2 - Register the control in your ASPX file:
<%@ Register Src="SetScale.ascx" TagName="SetScale" TagPrefix="ss" %>
3 - Insert the SetScale control into the ASPX File (< and > removed):
ss:SetScale id="SetScaleControl" runat="server" MapBuddyId="Map1"
4 - Modify the scales in the SetScale.ascx file to better suit your map (if necessary). |