Click or drag to resize

ShapeLayer Class

This class represents a layer containing shape objects.

See the Shape Layer Concept topic for an example.

Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.Map.LayersBaseLayer
    Ptv.XServer.Controls.Map.Layers.ShapesShapeLayer

Namespace:  Ptv.XServer.Controls.Map.Layers.Shapes
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class ShapeLayer : BaseLayer

The ShapeLayer type exposes the following members.

Constructors
  NameDescription
Public methodShapeLayer
Initializes a new instance of the ShapeLayer class. By default, the spatial reference system is set to "EPSG:4326".
Top
Properties
  NameDescription
Public propertyCanvasCategories
Gets or sets the canvas categories for the layer.
(Inherited from BaseLayer.)
Public propertyCanvasFactories
Gets or sets the array of factory delegates. There may be existing different factory methods for canvases of different categories.
(Inherited from BaseLayer.)
Public propertyCaption
Gets or sets the caption of the layer.
(Inherited from BaseLayer.)
Public propertyCopyright
Gets or sets the copyright text of the layer.
(Inherited from BaseLayer.)
Public propertyHasSettingsDialog
Gets a value indicating whether the layer has a settings dialog describing its properties.
(Inherited from BaseLayer.)
Public propertyIcon
Gets or sets the icon of the layer.
(Inherited from BaseLayer.)
Public propertyLazyUpdate
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.
Public propertyLocalOffset
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
Public propertyName
Gets or sets the name of the layer.
(Inherited from BaseLayer.)
Public propertyOpacity
Gets or sets the opacity of the layer.
(Inherited from BaseLayer.)
Public propertyPriority
Gets or sets the zIndex of the layer.
(Inherited from BaseLayer.)
Public propertyShapes
Gets the collection of shapes to be displayed by this layer.
Public propertySpatialReferenceId
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.
Top
Methods
  NameDescription
Public methodAddToMapView
Adds the layer to a map.
(Inherited from BaseLayer.)
Public methodInitializeFactory
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.)
Public methodRefresh
Updates the layer instances.
(Inherited from BaseLayer.)
Public methodRemoveFromMapView
Removes the layer from a map.
(Inherited from BaseLayer.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from BaseLayer.)
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also