Skip to main content
Version: 4.2

MapMarkerCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Owns ordered markers and observes their property changes.

public class MapMarkerCollection : Collection<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​

Instance member MapMarkerCollection()​

Initializes a new instance of MapMarkerCollection.

Methods​

Protected member ClearItems()​

Releases all markers and clears the collection.

Protected member InsertItem(index, item)​

Inserts and observes a marker.

ParameterTypeDescription
indexInt32Insertion index.
itemMapMarkerAn unowned marker.

Protected member RemoveItem(index)​

Removes a marker and releases ownership.

ParameterTypeDescription
indexInt32Removal index.

Protected member SetItem(index, item)​

Replaces a marker and transfers observation.

ParameterTypeDescription
indexInt32Replacement index.
itemMapMarkerAn unowned marker.