Skip to content

MapTools

Namespace: ThinkGeo.UI.Android

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

public class MapTools : ThinkGeo.Core.GeoCollection`1[[ThinkGeo.UI.Android.MapTool, ThinkGeo.UI.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IList`1[[ThinkGeo.UI.Android.MapTool, ThinkGeo.UI.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.ICollection`1[[ThinkGeo.UI.Android.MapTool, ThinkGeo.UI.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IEnumerable`1[[ThinkGeo.UI.Android.MapTool, ThinkGeo.UI.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable, System.Collections.IList, System.Collections.ICollection, System.Collections.Generic.IReadOnlyList`1[[ThinkGeo.UI.Android.MapTool, ThinkGeo.UI.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IReadOnlyCollection`1[[ThinkGeo.UI.Android.MapTool, ThinkGeo.UI.Android, Version=1.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

ZoomMapTool

Gets the zoom map tool.

public ZoomMapTool ZoomMapTool { get; }

Property Value

ZoomMapTool
The zoom map tool.

CenterCoordinate

Gets the center coordinate.

public CenterCoordinateMapTool CenterCoordinate { get; }

Property Value

CenterCoordinateMapTool
The center coordinate.

CompassMapTool

public CompassMapTool CompassMapTool { get; }

Property Value

CompassMapTool

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(Context, MapView)

Initializes a new instance of the MapTools class.

public MapTools(Context context, MapView currentMap)

Parameters

context Context
Interface to global information about an application environment.

currentMap MapView
A mapView 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()

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;