Skip to content

MapTools

Namespace: ThinkGeo.Core

Contains the different map tools as properties and acts as an entrance for setting these map controls.

public class MapTools : GeoCollection`1, System.Collections.Generic.IList`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.ICollection`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IEnumerable`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable, System.Collections.IList, System.Collections.ICollection, System.Collections.Generic.IReadOnlyList`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IReadOnlyCollection`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Specialized.INotifyCollectionChanged, System.ComponentModel.INotifyPropertyChanged

Inheritance ObjectCollection<MapTool> → GeoCollection<MapTool> → MapTools
Implements IList<MapTool>, ICollection<MapTool>, IEnumerable<MapTool>, IEnumerable, IList, ICollection, IReadOnlyList<MapTool>, IReadOnlyCollection<MapTool>, INotifyCollectionChanged, INotifyPropertyChanged

Remarks:

This class is designed to be easy to use. It contains all the available tools of the map. You can find and set those map tools easily by using this class.

Properties

Gets a shortcut of LogoMapTool object.

public LogoMapTool Logo { get; }

Property Value

LogoMapTool

MouseCoordinate

Gets a shortcut of MouseCoordinate object.

public MouseCoordinateMapTool MouseCoordinate { get; }

Property Value

MouseCoordinateMapTool

PanZoomBar

Gets a shortcut of PanZoomBar object.

public PanZoomBarMapTool PanZoomBar { get; }

Property Value

PanZoomBarMapTool

ScaleLine

Gets a shortcut of ScaleLine object.

public ScaleLineMapTool ScaleLine { get; }

Property Value

ScaleLineMapTool

Item

public MapTool Item { get; set; }

Property Value

MapTool

Count

public int Count { get; }

Property Value

Int32

Item

public MapTool Item { get; set; }

Property Value

MapTool

Constructors

MapTools()

Constructor of MapTools class.

public MapTools()

MapTools(MapViewBase)

Constructor of MapTools class.

public MapTools(MapViewBase mapView)

Parameters

mapView MapViewBase
A WpfMap object that all map tools in this object is based on.

Methods

Refresh()

Refreshes all the map tools objects maintaining in the MapTools object.

public void Refresh()

Finalize()

protected void Finalize()

Events

Inserting

public event EventHandler<InsertingGeoCollectionEventArgs> Inserting;

Inserted

public event EventHandler<InsertedGeoCollectionEventArgs> Inserted;

Removing

public event EventHandler<RemovingGeoCollectionEventArgs> Removing;

Removed

public event EventHandler<RemovedGeoCollectionEventArgs> Removed;

Adding

public event EventHandler<AddingGeoCollectionEventArgs> Adding;

Added

public event EventHandler<AddedGeoCollectionEventArgs> Added;

ClearingItems

public event EventHandler<ClearingItemsGeoCollectionEventArgs> ClearingItems;

ClearedItems

public event EventHandler<ClearedItemsGeoCollectionEventArgs> ClearedItems;

MovedItem

public event EventHandler<MovedItemGeoCollectionEventArgs> MovedItem;

CollectionChanged

public event NotifyCollectionChangedEventHandler CollectionChanged;

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged;