-
- All Implemented Interfaces:
public interface AnnotationFactoryPublic API for annotation factory.
Obtain instances from the corresponding service factory after SDK initialization. Threading, lifecycle, and error handling are described on individual methods.
-
-
Method Summary
Modifier and Type Method Description abstract Annotationcreate(Context context, @DrawableRes() Integer resourceId, Location location)Create an annotation to be added to a MapView abstract Annotationcreate(Context context, Annotation.UserGraphic userGraphic, Location location)Create an annotation to be added to a MapView abstract Annotationcreate(Annotation.ExplicitStyle explicitStyle, Location location)Create an annotation with a specially designed explicit style. abstract Annotationcreate(POIAnnotationParams params)Create an annotation using a TSS style. abstract AnnotationcreateRouteAnnotation(String routeID, String style)Create a route annotation with the given route ID and style. -
-
Method Detail
-
create
abstract Annotation create(Context context, @DrawableRes() Integer resourceId, Location location)
Create an annotation to be added to a MapView
- Parameters:
context- Context object, usually of the hosting activity or fragmentresourceId- resource id of the image to loadlocation- The location where the annotation will be displayed
-
create
abstract Annotation create(Context context, Annotation.UserGraphic userGraphic, Location location)
Create an annotation to be added to a MapView
- Parameters:
context- Context object, usually of the hosting activity or fragmentuserGraphic- the graphic representing the image to be used for the annotation.location- The location where the annotation will be displayed
-
create
abstract Annotation create(Annotation.ExplicitStyle explicitStyle, Location location)
Create an annotation with a specially designed explicit style. notice: other Annotation.Style won't take effect.
- Parameters:
explicitStyle- a style of Annotation.ExplicitStyle, like HeavyCongestionBubble, LightCongestionBubble.location- The location where the annotation will be displayed
-
create
abstract Annotation create(POIAnnotationParams params)
Create an annotation using a TSS style. Delegates the control over graphics and text rendering to the engine.
- Parameters:
params- params for creating annotations using TSS resources
-
createRouteAnnotation
abstract Annotation createRouteAnnotation(String routeID, String style)
Create a route annotation with the given route ID and style.
- Parameters:
routeID- The ID of the route you want to create an annotation for.style- The style of the annotation.
-
-
-
-