You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Set zoom value if any of the zoom tools were selected
if(rblMapTools.SelectedValue=="0")//Zoom in
myMap.Zoom=myMap.Zoom*0.5;
elseif(rblMapTools.SelectedValue=="1")//Zoom out
myMap.Zoom=myMap.Zoom*2;
//Create the map
GenerateMap();
}
/// <summary>
/// Creates the map, inserts it into the cache and sets the ImageButton Url
/// </summary>
privatevoidGenerateMap()
{
//Save the current mapcenter and zoom in the viewstate
ViewState.Add("mapCenter",myMap.Center);
ViewState.Add("mapZoom",myMap.Zoom);
//Render map
Imageimg;
try
{
img=myMap.GetMap();
}
catch(SqlExceptionex)
{
thrownewException(
"An error related to Sql occured. Ensure you have configured the database server correctly and updated the web.config file. See the readme in the MsSqlSpatialDemoDb folder.",