Assembly: EGIS.Web.Controls (in EGIS.Web.Controls.dll)
Syntax
Visual Basic |
---|
Public Class SFMap _ Inherits CompositeControl _ Implements ISFMap |
C# |
---|
public class SFMap : CompositeControl, ISFMap |
Visual C++ |
---|
public ref class SFMap : public CompositeControl, ISFMap |
JavaScript |
---|
EGIS.Web.Controls.SFMap = function(); Type.createClass( 'EGIS.Web.Controls.SFMap', CompositeControl, EGIS.Web.Controls.ISFMap); |
Remarks
This is the main control in the EGIS.Web.Controls namespace. The SFMap control is a composite control that looks and behaves the same as the Desktop EGIS.Controls.SFMap Control and is used to display and interact with a map in a web page.
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 SFMap 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 SFMap 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 SFMap 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 Code | |
---|---|
<httpHandlers> <add path="egismap.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.Web.UI..::..Control
System.Web.UI.WebControls..::..WebControl
System.Web.UI.WebControls..::..CompositeControl
EGIS.Web.Controls..::..SFMap