Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

AnnotationManager::update doesn't update LineAnnotation / FillAnnotation #5844

Closed

Description

@tobrun

I have been looking into implementing updatable Polyline/Polygons on the Android bindings.
For this I'm hooking into the following methods exposed in AnnotationManager:

    Update update(const AnnotationID&, const LineAnnotation&, const uint8_t);
    Update update(const AnnotationID&, const FillAnnotation&, const uint8_t);

When I execute the update method, I'm seeing the polygon being removed but not readded:

ezgif com-video-to-gif 23

The code used here is equivalent to the one used for SymbolAnnotation.

Activity

  1. added
    Core
    on Aug 2, 2016
  2. added this to the android-v4.2.0 milestone on Aug 2, 2016
  3. tobrun commented on Aug 2, 2016

    @tobrun
    MemberAuthor

    I'm currently working around this by calling remove/add myself instead of AnnotationManager. While this works it's doesn't have the correct ID since a new ID is assigned with add.

    ezgif com-video-to-gif 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions