In This Topic
The Vector layer allows you to place various objects with geographic coordinates on the map.
Following are the main vector elements that can be added to the vector layer:
- C1VectorPolyline – Similar to Polygon class, except that this object needn't be a closed shape. The polyline is formed using geographical coordinates. Typical usage: paths, routes. See Add a Polyline for more information.
- C1VectorPolygon – Similar to Polyline class, but it draws a polygon, which is a connected series of lines that form a closed shape. The polygon is formed using geographical coordinates. Typical usage: borders, regions. See Add a Polygon for more information.
- C1VectorPlacemark – An object attached to the geographical point, the placemarks have scale-independent geometry where coordinates are expressed in pixels and optional label (any UIElement). Typical usage: labels, icons, marks on the map. See Add a label for more information.
Element Visibility
There are several properties that can control element visibility depending on the current map scale. For example, you can show more details when zooming in and hide them when zooming out.
-
MinSize: C1VectorLayer.MinSize property specifies at which minimal linear screen size the element becomes visible.
-
LabelVisibilty: This is a special property that controls the visibility of C1VectorPlacemark labels. C1VectorLayer's LabelVisibilty can have the following values:
- Hide – Labels are not visible but are shown as ToolTips.
- AutoHide – Overlapped labels are hidden.
- Visible – All the labels are visible.
-
LOD (Level of Details): Each vector element can have its own visibility settings that are stored in LOD property and has priority over the global values. LOD structure has the following properties:
- MinSize, MaxSize – Specifies the visible range of linear screen size of an element. If the size does not fit in the range the element is hidden.
- MinZoom, MaxZoom – Specifies the range of map scales (C1.Zoom property) in which the element should be displayed
See Also