Online Maps  v3
OnlineMapsMarkerManagerBase< T, U > Class Template Referenceabstract

Base class for markers managers More...

Inheritance diagram for OnlineMapsMarkerManagerBase< T, U >:
OnlineMapsInteractiveElementManager< T, U > IOnlineMapsSavableComponent

Public Member Functions

abstract OnlineMapsSavableItem[] GetSavableItems ()
 Returns an array of items to save More...
 
- Public Member Functions inherited from OnlineMapsInteractiveElementManager< T, U >
Add (U item)
 Adds an item to the list More...
 
void AddRange (IEnumerable< U > collection)
 Adds items to the list More...
 
IEnumerator GetEnumerator ()
 Gets the enumerator More...
 
int IndexOf (IOnlineMapsInteractiveElement element)
 Index of item More...
 
bool Remove (U item, bool dispose=true)
 Remove an item More...
 
void RemoveAll (bool dispose=true)
 Remove all items More...
 
void RemoveAll (Predicate< U > match, bool dispose=true)
 Removes all items which matches the predicate More...
 
RemoveAt (int index, bool dispose=true)
 Remove an item by index More...
 

Public Attributes

Action< U > OnCreateItem
 Called when a marker is created More...
 
float defaultScale = 1
 Scaling of 3D markers by default More...
 

Additional Inherited Members

- Static Public Member Functions inherited from OnlineMapsInteractiveElementManager< T, U >
static U AddItem (U item)
 Adds an item to the list More...
 
static void AddItems (IEnumerable< U > collection)
 Adds items to the list More...
 
static void Init ()
 Initializes the manager More...
 
static void RemoveAllItems ()
 Remove all items More...
 
static void RemoveAllItems (Predicate< U > match)
 Removes all items which matches the predicate More...
 
static bool RemoveItem (U item, bool dispose=true)
 Remove an item More...
 
static U RemoveItemAt (int index)
 Remove an item by index More...
 
static void SetItems (IEnumerable< U > collection)
 Sets the collection of items More...
 
- Static Public Attributes inherited from OnlineMapsInteractiveElementManager< T, U >
static Action< U > OnAddItem
 The event that occurs when an item is added. More...
 
static Action< U > OnRemoveItem
 The event that occurs when an item is removed. More...
 
- Static Protected Member Functions inherited from OnlineMapsInteractiveElementManager< T, U >
static void Redraw ()
 Redraws the map More...
 
- Properties inherited from OnlineMapsInteractiveElementManager< T, U >
static T instance [get]
 Instance of the manager More...
 
List< U > items [get, set]
 Gets / sets the list of items More...
 
OnlineMaps map [get]
 Reference to the map More...
 
static int CountItems [get]
 Count items More...
 
int Count [get]
 Count items More...
 
this[int index] [get, set]
 Gets / sets item by index More...
 

Detailed Description

Base class for markers managers

Template Parameters
TSubclass of OnlineMapsMarkerManagerBase
UType of markers
Type Constraints
T :OnlineMapsMarkerManagerBase 
T :T 
T :U 
U :OnlineMapsMarkerBase 

Member Function Documentation

◆ GetSavableItems()

abstract OnlineMapsSavableItem [] OnlineMapsMarkerManagerBase< T, U >.GetSavableItems ( )
pure virtual

Returns an array of items to save

Returns
Array of items to save

Implements IOnlineMapsSavableComponent.

Member Data Documentation

◆ defaultScale

float OnlineMapsMarkerManagerBase< T, U >.defaultScale = 1

Scaling of 3D markers by default

◆ OnCreateItem

Action<U> OnlineMapsMarkerManagerBase< T, U >.OnCreateItem

Called when a marker is created