forked from SharpMap/SharpMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAjax.aspx.cs
More file actions
21 lines (20 loc) · 737 Bytes
/
Copy pathAjax.aspx.cs
File metadata and controls
21 lines (20 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Drawing;
using System.Web.UI;
using Point=GeoAPI.Geometries.Coordinate;
public partial class Ajax : Page
{
protected void Page_Load(object sender, EventArgs e)
{
ajaxMap.Map = MapHelper.InitializeMap(new Size(10, 10));
if (!Page.IsPostBack && !Page.IsCallback)
{
//Set up the map. We use the method in the App_Code folder for initializing the map
ajaxMap.Map.Center = new Point(0, 20);
ajaxMap.FadeSpeed = 10;
ajaxMap.ZoomSpeed = 10;
ajaxMap.Map.Zoom = 360;
}
ajaxMap.ResponseFormat = "maphandler.ashx?MAP=SimpleWorld&Width=[WIDTH]&Height=[HEIGHT]&Zoom=[ZOOM]&X=[X]&Y=[Y]";
}
}