-
- All Implemented Interfaces:
public interface AnnotationsController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAnnotationsController.LayerActionThe 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 Unitadd(List<Annotation> annotations)Add Annotations to MapView. abstract List<Annotation>current()Get current list of annotations in MapView abstract Unitupdate(List<Annotation> annotations)Update the annotations that have been added abstract UnitupdateState(Annotation annotation, String state, Float transitionTime)Update the state of an annotation. abstract Unitremove(List<Annotation> annotations)Remove list of Annotations from MapView abstract Unitclear()Clear all annotations from the map. abstract Camera.Regionregion(List<Annotation> annotations)Get the region that encompasses the given annotations abstract UnitactionOnLayer(Annotation.Layer layer, AnnotationsController.LayerAction action)-
-
Method Detail
-
factory
abstract AnnotationFactory factory()
Get the factory to be used to create annotations
-
add
abstract Unit add(List<Annotation> annotations)
Add Annotations to MapView.
- Parameters:
annotations- list of annotations you would like to add to map.
-
current
abstract List<Annotation> current()
Get current list of annotations in MapView
-
update
abstract Unit update(List<Annotation> annotations)
Update the annotations that have been added
- Parameters:
annotations- list of annotations you would like to update.
-
updateState
abstract Unit updateState(Annotation annotation, String state, Float transitionTime)
Update the state of an annotation. The provided state must be in the current TSS file
- Parameters:
annotation- the annotation whose state is being updated.state- string specifying the state to update to.transitionTime- the length of time to transition from one state to another.
-
remove
abstract Unit remove(List<Annotation> annotations)
Remove list of Annotations from MapView
- Parameters:
annotations- list of annotations to remove from the map
-
clear
abstract Unit 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(List<Annotation> annotations)
Get the region that encompasses the given annotations
- Parameters:
annotations- list of annotations want to show
-
actionOnLayer
abstract Unit actionOnLayer(Annotation.Layer layer, 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
-
-
-
-