Online Maps v3
Loading...
Searching...
No Matches
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

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

Public Attributes

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

Additional Inherited Members

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

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()

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

Returns an array of items to save.

Returns
Array of items to save

Implements IOnlineMapsSavableComponent.