Package 

Class AnnotationManager

    • Method Detail

      • getLayerId

         String getLayerId()

        Returns a layer ID that annotations created by this manager are laid out on.

        This reference can be used together with addLayerAbove or addLayerBelow to improve other layers positioning in relation to this manager.

      • create

        @UiThread() T create(S options)

        Create an annotation on the map

        Parameters:
        options - the annotation options defining the annotation to build
      • create

        @UiThread() List<T> create(List<S> optionsList)

        Create a list of annotations on the map.

        Parameters:
        optionsList - the list of annotation options defining the list of annotations to build
      • delete

        @UiThread() void delete(T annotation)

        Delete an annotation from the map.

        Parameters:
        annotation - annotation to be deleted
      • delete

        @UiThread() void delete(List<T> annotationList)

        Deletes annotations from the map.

        Parameters:
        annotationList - the list of annotations to be deleted
      • update

        @UiThread() void update(T annotation)

        Update an annotation on the map.

        Parameters:
        annotation - annotation to be updated
      • update

        @UiThread() void update(List<T> annotationList)

        Update annotations on the map.

        Parameters:
        annotationList - list of annotation to be updated
      • updateSource

         void updateSource()

        Trigger an update to the underlying source. The update is delayed until afterthe next UI draw to batch multiple actions.

      • addDragListener

        @UiThread() void addDragListener(@NonNull() D d)

        Add a callback to be invoked when an annotation is dragged.

        Parameters:
        d - the callback to be invoked when an annotation is dragged
      • removeDragListener

        @UiThread() void removeDragListener(@NonNull() D d)

        Remove a previously added callback that was to be invoked when an annotation has been dragged.

        Parameters:
        d - the callback to be removed
      • addClickListener

        @UiThread() void addClickListener(@NonNull() U u)

        Add a callback to be invoked when a symbol has been clicked.

        Parameters:
        u - the callback to be invoked when a symbol is clicked
      • removeClickListener

        @UiThread() void removeClickListener(@NonNull() U u)

        Remove a previously added callback that was to be invoked when symbol has been clicked.

        Parameters:
        u - the callback to be removed
      • addLongClickListener

        @UiThread() void addLongClickListener(@NonNull() V v)

        Add a callback to be invoked when a symbol has been long clicked.

        Parameters:
        v - the callback to be invoked when a symbol is clicked
      • removeLongClickListener

        @UiThread() void removeLongClickListener(@NonNull() V v)

        Remove a previously added callback that was to be invoked when symbol has been long clicked.

        Parameters:
        v - the callback to be removed
      • onDestroy

        @UiThread() void onDestroy()

        Cleanup annotation manager, used to clear listeners