-
- All Implemented Interfaces:
public interface AnnotationFactory
-
-
Method Summary
Modifier and Type Method Description abstract Annotation
create(@NonNull() Context context, @DrawableRes() int resourceId, @NonNull() Location location)
* Create an annotation to be added to a MapView abstract Annotation
create(@NonNull() Context context, @NonNull() Annotation.UserGraphic userGraphic, @NonNull() Location location)
* Create an annotation to be added to a MapView abstract Annotation
create(@NonNull() Annotation.ExplicitStyle explicitStyle, @NonNull() Location location)
* Create an annotation with a specially designed explicit style. abstract Annotation
create(@NonNull() POIAnnotationParams params)
* Create an annotation using a TSS style. abstract Annotation
createRouteAnnotation(@NonNull() String routeID, @NonNull() String style, float bubbleType)
Create an annotation to attach with an added route. -
-
Method Detail
-
create
abstract Annotation create(@NonNull() Context context, @DrawableRes() int resourceId, @NonNull() 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(@NonNull() Context context, @NonNull() Annotation.UserGraphic userGraphic, @NonNull() 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(@NonNull() Annotation.ExplicitStyle explicitStyle, @NonNull() 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(@NonNull() 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(@NonNull() String routeID, @NonNull() String style, float bubbleType)
Create an annotation to attach with an added route. notice: this annotation can't support to attach a client image.
- Parameters:
routeID
- the routeID of the added routestyle
- the style which you can set up for route (smart-bubble or ev-bubble)bubbleType
- if you set smart-bubble you need use: 0 - default 1 - unfocused 2 - selected 3 - two texts 4 - ftue 5 - low battery else if use set ev-bubble you need use: 0 - simple 1 - battery 2 - battery depleted 3 - expandable time 4 - expandable additional time 5 - expanded Note: you can have different values for smart-bubble, please check your own style.
-
-
-
-