ASP .NET Mapping Control which loads and displays an Easy GIS .NET map project in a web page using map tile images.

Namespace:  EGIS.Web.Controls
Assembly:  EGIS.Web.Controls (in EGIS.Web.Controls.dll)

Syntax

Visual Basic
Public Class TiledSFMap _
	Inherits CompositeControl _
	Implements ISFMap
C#
public class TiledSFMap : CompositeControl, ISFMap
Visual C++
public ref class TiledSFMap : public CompositeControl, 
	ISFMap
JavaScript
EGIS.Web.Controls.TiledSFMap = function();

Type.createClass(
	'EGIS.Web.Controls.TiledSFMap',
	CompositeControl,
	EGIS.Web.Controls.ISFMap);

Remarks

This control is similar to the SFMap Control, but it uses a tile approach to take advantage of caching on client's web-browsers to provide much faster map interaction.

Note that in order to use the SFMap the displayed project must be using lat long degree coordinates as the map will use a Mercator Projection

Tiles are organised in a manner similar to the approach used by google maps and bing maps. Each tiles dimension is 256x256 pixels. A tile request is made up of a zoom-level between 0 and 16(inclusive), tile x-ccord and a tile y-ccord. At zoom-level 0 the entire world (-180 lon -> +180 lon) is scaled to fit in 1 tile. At level 1 the world will fit in 2 tiles x 2 tiles, at level 2 the world will fit into 4 tiles x 4 tiles, .. etc.

Tiles are numbered from zero in the upper left corner to (NumTiles at zoom-level)-1 as below:

 Copy imageCopy Code
            (0,0) (1,0) (2,0) ..
            (0,1) (1,1) (2,1) ..
            (0,2) (1,2) (2,2) ..
            ..
            

An Easy GIS .NET project is composed of a number of Shapefiles and can be designed using the Desktop Edition of Easy GIS .NET. The project should be exported and copied to the web server hosting the page where the TiledSFMap Web Control will be used. For more information on how to export a project ready to load in a web page see Easy GIS .NET Developers page The TiledSFMap Control generates all map images on the hosting web server using an IHttpHandler. All requests are performed automatically on the client's web browser using JavaScript and AJAX, resulting in a map that can be panned and zoomed in or out without refreshing the web page for each request.

NOTE: In order for the server to render maps an entry in the httpHandlers section of the web.config file must be made. If the TiledSFMap Control is added to a page using the design view in Visual Studio an entry is added to the web.config file automatically, however if the Control is manually added to a page it will be neccessary to add the following section to the config file.

 Copy imageCopy Code
            <httpHandlers>
                   <add path="egismaptiled.axd" verb="*" type="EGIS.Web.Controls.SFMapImageProvider, EGIS.Web.Controls, Version=2.3.0.0, Culture=neutral, PublicKeyToken=05b98c869b5ffe6a"
                       validate="true" />
               </httpHandlers>
            

Inheritance Hierarchy

System..::..Object
  System.Web.UI..::..Control
    System.Web.UI.WebControls..::..WebControl
      System.Web.UI.WebControls..::..CompositeControl
        EGIS.Web.Controls..::..TiledSFMap

See Also