Package 

Interface AnnotationFactory

    • Constructor Detail

    • 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 fragment
        resourceId - resource id of the image to load
        location - 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 fragment
        userGraphic - 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.