alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapMarkerCollection

    Represents the map marker collection.

    Inheritance
    object
    Collection<MapMarker>
    ObservableCollection<MapMarker>
    MapMarkerCollection
    Implements
    IList<MapMarker>
    ICollection<MapMarker>
    IList
    ICollection
    IReadOnlyList<MapMarker>
    IReadOnlyCollection<MapMarker>
    IEnumerable<MapMarker>
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged
    Inherited Members
    Collection<MapMarker>.Add(MapMarker)
    Collection<MapMarker>.Clear()
    Collection<MapMarker>.Contains(MapMarker)
    Collection<MapMarker>.CopyTo(MapMarker[], int)
    Collection<MapMarker>.Count
    Collection<MapMarker>.GetEnumerator()
    Collection<MapMarker>.IndexOf(MapMarker)
    Collection<MapMarker>.Insert(int, MapMarker)
    Collection<MapMarker>.Items
    Collection<MapMarker>.Remove(MapMarker)
    Collection<MapMarker>.RemoveAt(int)
    Collection<MapMarker>.this[int]
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    ObservableCollection<MapMarker>.BlockReentrancy()
    ObservableCollection<MapMarker>.CheckReentrancy()
    ObservableCollection<MapMarker>.ClearItems()
    ObservableCollection<MapMarker>.CollectionChanged
    ObservableCollection<MapMarker>.InsertItem(int, MapMarker)
    ObservableCollection<MapMarker>.Move(int, int)
    ObservableCollection<MapMarker>.MoveItem(int, int)
    ObservableCollection<MapMarker>.OnCollectionChanged(NotifyCollectionChangedEventArgs)
    ObservableCollection<MapMarker>.OnPropertyChanged(PropertyChangedEventArgs)
    ObservableCollection<MapMarker>.PropertyChanged
    ObservableCollection<MapMarker>.RemoveItem(int)
    ObservableCollection<MapMarker>.SetItem(int, MapMarker)
    Namespace: Syncfusion.Maui.Maps
    Assembly: Syncfusion.Maui.Maps.dll
    Syntax
    public class MapMarkerCollection : ObservableCollection<MapMarker>, IList<MapMarker>, ICollection<MapMarker>, IList, ICollection, IReadOnlyList<MapMarker>, IReadOnlyCollection<MapMarker>, IEnumerable<MapMarker>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
    Examples
    • XAML
    • C#
    <map:SfMaps>
       <map:SfMaps.Layer>
          <map:MapShapeLayer x:Name="layer"
                             ShapesSource="https://cdn.syncfusion.com/maps/map-data/world-map.json">
    
             <map:MapShapeLayer.Markers>
                 <map:MapMarkerCollection>
                     <map:MapMarker x:Name="Seattle"
                                    Latitude="47.60621"
                                    Longitude="-122.332071" />
                     <map:MapMarker x:Name="Belem"
                                    Latitude="-1.455833"
                                    Longitude="-48.503887" />
                 </map:MapMarkerCollection>
             </map:MapShapeLayer.Markers>
    
          </map:MapShapeLayer>
       </map:SfMaps.Layer>
    </map:SfMaps>
    SfMaps maps = new SfMaps();
    MapShapeLayer layer = new MapShapeLayer();
    layer.ShapesSource = MapSource.FromUri(new Uri("https://cdn.syncfusion.com/maps/map-data/world-map.json"));
    MapMarker mapMarker1 = new MapMarker();
    mapMarker1.Latitude = 47.60621;
    mapMarker1.Longitude = -122.332071;
    MapMarker mapMarker2 = new MapMarker();
    mapMarker2.Latitude = -1.455833;
    mapMarker2.Longitude = -48.503887;
    MapMarkerCollection mapMarkers = new MapMarkerCollection();
    mapMarkers.Add(mapMarker1);
    mapMarkers.Add(mapMarker2);
    layer.Markers = mapMarkers;
    maps.Layer = layer;
    this.Content = maps;

    Constructors

    MapMarkerCollection()

    Declaration
    public MapMarkerCollection()

    Implements

    IList<T>
    ICollection<T>
    IList
    ICollection
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved