MapMarkerCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Owns ordered markers and observes their property changes.
- C#
- VB.NET
public class MapMarkerCollection : Collection<MapMarker>
Public Class MapMarkerCollection
Inherits Collection(Of MapMarker)
A marker belongs to one collection. Removing it releases ownership.
Example:
map.Markers.Add(new MapMarker { Text = "Account" });
map.Markers.Add(new MapMarker { Text = "Review" });
map.FitBounds();
Constructors
MapMarkerCollection()
Initializes a new instance of MapMarkerCollection.
Methods
ClearItems()
Releases all markers and clears the collection.
InsertItem(index, item)
Inserts and observes a marker.
RemoveItem(index)
Removes a marker and releases ownership.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Removal index. |
SetItem(index, item)
Replaces a marker and transfers observation.