Method | Description | |
---|---|---|
Dispose ( ) : void |
Disposes the map object
|
|
FindLayer ( string layername ) : IEnumerable |
Returns an enumerable for all layers containing the search parameter in the LayerName property
|
|
GetExtents ( ) : SharpMap.Geometries.BoundingBox |
Gets the extents of the map based on the extents of all the layers in the layers collection
|
|
GetLayerByName ( string name ) : SharpMap.Layers.ILayer |
Returns a layer by its name
|
|
GetMap ( ) : System.Drawing.Image |
Renders the map to an image
|
|
ImageToWorld ( System p ) : SharpMap.Geometries.Point |
Converts a point from image coordinates to world coordinates based on the current zoom, center and mapsize.
|
|
Map ( ) : System |
Initializes a new map
|
|
Map ( System size ) : System |
Initializes a new map
|
|
WorldToImage ( SharpMap p ) : System.Drawing.PointF |
Converts a point from world coordinates to image coordinates based on the current zoom, center and mapsize.
|
|
ZoomToBox ( SharpMap bbox ) : void |
Zooms the map to fit a bounding box NOTE: If the aspect ratio of the box and the aspect ratio of the mapsize isn't the same, the resulting map-envelope will be adjusted so that it contains the bounding box, thus making the resulting envelope larger! |
|
ZoomToExtents ( ) : void |
Zooms to the extents of all layers
|
public FindLayer ( string layername ) : IEnumerable |
||
layername | string | Search parameter |
return | IEnumerable |
public GetExtents ( ) : SharpMap.Geometries.BoundingBox | ||
return | SharpMap.Geometries.BoundingBox |
public GetLayerByName ( string name ) : SharpMap.Layers.ILayer | ||
name | string | Name of layer |
return | SharpMap.Layers.ILayer |
public ImageToWorld ( System p ) : SharpMap.Geometries.Point | ||
p | System | Point in image coordinates |
return | SharpMap.Geometries.Point |
public Map ( System size ) : System | ||
size | System | Size of map in pixels |
return | System |
public WorldToImage ( SharpMap p ) : System.Drawing.PointF | ||
p | SharpMap | Point in world coordinates |
return | System.Drawing.PointF |