Click or drag to resize

MapPolyline Class

This class represents a polyline on the map. The MapPolyline is responsible for adapting the visual to the current map viewport in terms of scaling and clipping.

See the Shape Layer Concept topic for an example.

Inheritance Hierarchy

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 MapPolyline : MapPolylineBase

The MapPolyline type exposes the following members.

Constructors
  NameDescription
Public methodMapPolyline
Initializes a new instance of the MapPolyline class.
Top
Properties
  NameDescription
Protected propertyDefiningGeometry
Gets a value that represents the geometry of the shape.
(Inherited from MapPolylineBase.)
Public propertyGeoTransform
Gets or sets a method which transforms a point from one coordinate system to another.
(Inherited from MapShape.)
Public propertyMapStrokeThickness
Gets or sets the map stroke thickness.
(Inherited from MapShape.)
Public propertyPoints
Gets or sets the points of the polyline.
(Inherited from MapPolylineBase.)
Public propertyScaleFactor
Gets or sets the scale factor. See ScaleFactorProperty.
(Inherited from MapShape.)
Public propertyTransformedPoints
Gets or sets the transformed points. The transformed points are a collection of points which have been transformed to the currently applied spatial reference system. This property helps to improve performance since the point transformation is only done once.
(Inherited from MapPolylineBase.)
Top
Methods
  NameDescription
Protected methodBuildGeometry
Builds the geometry of the polyline.
Protected methodClipShape
Clip the Polyline object.
Public methodCurrentThickness
Retrieves the thickness for lines depending on the current scale.
(Inherited from MapShape.)
Protected methodNeedsUpdate
Indicates if the update process should be started or not.
(Inherited from MapShape.)
Protected methodTransformShape
Transforms the polyline object according the transformation provided by GeoTransform.
Public methodUpdateShape
Update the properties of the shape, according the current scale of the MapView object.
(Overrides MapShapeUpdateShape(MapView, UpdateMode, Boolean).)
Top
Fields
  NameDescription
Protected fieldData
Contains the geometry provided by property DefiningGeometry.
(Inherited from MapPolylineBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodEnvelope
Create the minimal bounding rectangle around a shape object.
(Defined by RectExtensions.)
Public Extension MethodFindRelativeT
Finds an object of type T for a framework element which is somewhere in the visual tree.
(Defined by MapElementExtensions.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also