ShapeLayer Class |
This class represents a layer containing shape objects.
See the Shape Layer Concept topic for an example.
Namespace: Ptv.XServer.Controls.Map.Layers.Shapes
The ShapeLayer type exposes the following members.
Name | Description | |
---|---|---|
ShapeLayer | Initializes a new instance of the ShapeLayer class. By default, the spatial reference system is set to "EPSG:4326". |
Name | Description | |
---|---|---|
CanvasCategories | Gets or sets the canvas categories for the layer. (Inherited from BaseLayer.) | |
CanvasFactories | Gets or sets the array of factory delegates. There may be existing different factory methods for
canvases of different categories. (Inherited from BaseLayer.) | |
Caption | Gets or sets the caption of the layer. (Inherited from BaseLayer.) | |
Copyright | Gets or sets the copyright text of the layer. (Inherited from BaseLayer.) | |
HasSettingsDialog | Gets a value indicating whether the layer has a settings dialog describing its properties. (Inherited from BaseLayer.) | |
Icon | Gets or sets the icon of the layer. (Inherited from BaseLayer.) | |
LazyUpdate | Gets or sets the update strategy for shapes when the map viewport changes. If lazy update is activated,
the shapes are only updated at the end of the viewport transition. | |
LocalOffset |
Gets or sets a local offset from the world origin (0,0). This can be used to reduce jitter on
higher zoom-levels. Note! This value must be set before the layer is Inserted into the map
| |
Name | Gets or sets the name of the layer. (Inherited from BaseLayer.) | |
Opacity | Gets or sets the opacity of the layer. (Inherited from BaseLayer.) | |
Priority | Gets or sets the zIndex of the layer. (Inherited from BaseLayer.) | |
Shapes | Gets the collection of shapes to be displayed by this layer. | |
SpatialReferenceId | Gets or sets the spatial reference number as a string. The spatial reference number defines the
coordinate system to which the coordinates of the shapes belong. |
Name | Description | |
---|---|---|
AddToMapView | Adds the layer to a map. (Inherited from BaseLayer.) | |
InitializeFactory | Initializes the base layer factory. A default category for the created canvases is set as well as a
default factory method which creates the new canvas instances. (Inherited from BaseLayer.) | |
Refresh | Updates the layer instances. (Inherited from BaseLayer.) | |
RemoveFromMapView | Removes the layer from a map. (Inherited from BaseLayer.) |
Name | Description | |
---|---|---|
PropertyChanged | Occurs when a property value changes. (Inherited from BaseLayer.) |
Name | Description | |
---|---|---|
ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |