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.
Namespace: Ptv.XServer.Controls.Map.Layers.Shapes
The MapIcon type exposes the following members.
Name | Description | |
---|---|---|
MapIcon | Initializes a new instance of the MapIcon class for the given UserControl. |
Name | Description | |
---|---|---|
Anchor | Gets or sets the anchor of the MapIcon. | |
Location | Gets or sets the location of the MapIcon. | |
ScaleFactor | Gets or sets the scale factor. See ScaleFactorProperty. |
Name | Description | |
---|---|---|
FindRelativeT | Finds an object of type T for a framework element which is somewhere in the visual tree. (Defined by MapElementExtensions.) | |
ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |