-
- All Implemented Interfaces:
public interface AnnotationsController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAnnotationsController.LayerAction* The enumerated actions that can be committed on an Annotation.Layer
-
Method Summary
Modifier and Type Method Description abstract AnnotationFactoryfactory()Get the factory to be used to create annotations abstract voidadd(@NonNull() List<Annotation> annotations)Add Annotations to MapView. abstract List<Annotation>current()Get current list of annotations in MapView abstract voidupdate(@NonNull() List<Annotation> annotations)Update the annotations that have been added abstract voidremove(@NonNull() List<Annotation> annotations)Remove list of Annotations from MapView abstract voidclear()Clear all annotations from the map. abstract Camera.Regionregion(@NonNull() List<Annotation> annotations)Get the region that encompasses the given annotations abstract voidactionOnLayer(@NonNull() Annotation.Layer layer, @NonNull() AnnotationsController.LayerAction action)* Commit and action on an entire layer (enable, disable, etc... -
-
Method Detail
-
factory
abstract AnnotationFactory factory()
Get the factory to be used to create annotations
-
add
abstract void add(@NonNull() List<Annotation> annotations)
Add Annotations to MapView.
- Parameters:
annotations- list of annotations you would like to add to map.
-
current
@NonNull() abstract List<Annotation> current()
Get current list of annotations in MapView
-
update
abstract void update(@NonNull() List<Annotation> annotations)
Update the annotations that have been added
- Parameters:
annotations- list of annotations you would like to update.
-
remove
abstract void remove(@NonNull() List<Annotation> annotations)
Remove list of Annotations from MapView
- Parameters:
annotations- list of annotations to remove from the map
-
clear
abstract void clear()
Clear all annotations from the map. Notes: this will clear all annotations added to this MapView. So if multiple model was adding annotation, they will be cleared too.
-
region
abstract Camera.Region region(@NonNull() List<Annotation> annotations)
Get the region that encompasses the given annotations
- Parameters:
annotations- list of annotations want to show
-
actionOnLayer
abstract void actionOnLayer(@NonNull() Annotation.Layer layer, @NonNull() AnnotationsController.LayerAction action)
* Commit and action on an entire layer (enable, disable, etc...)
- Parameters:
layer- The layer to commit the action onaction- The action to commit on the layer
-
-
-
-