Click or drag to resize

MapIcon Class

Note: This API is now obsolete.

This class represents a symbol on the map. Since a symbol cannot adapt its size and position according to the map scale by default, this class acts as a wrapper which extends this functionality. So it is responsible for placing the symbol at the appropriate coordinates and change its size according to the current map scale.

DO NOT SET DIRECTLY THE WIDTH AND THE HEIGHT OF THE MapIcon!!! SET THESE PROPERTIES DIRECTLY ON THE WRAPPED UserControl INSTEAD!!!

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
[ObsoleteAttribute("Use ShapeCanvas dependency properties instead", 
	false)]
public class MapIcon : ContentControl

The MapIcon type exposes the following members.

Constructors
  NameDescription
Public methodMapIcon
Initializes a new instance of the MapIcon class for the given UserControl.
Top
Properties
  NameDescription
Public propertyAnchor
Gets or sets the anchor of the MapIcon.
Public propertyLocation
Gets or sets the location of the MapIcon.
Public propertyScaleFactor
Gets or sets the scale factor. See ScaleFactorProperty.
Top
Extension Methods
  NameDescription
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