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.

The presence of image backed annotations should not trigger log messages #5210

Closed

Description

@boundsj

Once a GL sprite backed annotation is added to the map, the message [INFO] {Worker}[Sprite]: Can't find sprite named 'default_marker' is seen for every tile parse that has a UIView backed annotation in it. The message comes from this line in sprite_store.cpp but the underlying issue is that annotations that are are actually backed by UIViews are not fully understood by core implementation.

Activity

  1. added
    iOS
    on Jun 1, 2016
  2. jfirebaugh commented on Jun 1, 2016

    @jfirebaugh
    Contributor

    The SDK is trying to add a point annotation with the icon property set to an empty string, thinking that that will result in a point annotation without an icon, as described here. But in fact mbgl core doesn't have a concept of "point annotation without an icon". For historical reasons, the empty string is mapped to the "default_marker" icon, and any other string that doesn't have a matching icon will result in this debug message.

    I think you should find another way to implement what you need for annotation views. This isn't an intended use for the core annotations API.

  3. added
    annotations
    on Jun 2, 2016
  4. boundsj commented on Jun 2, 2016

    @boundsj
    ContributorAuthor

    Thanks @jfirebaugh. Noting that we discussed the workaround of using a transparent image with a specific name until we nail down exactly what the true fix will be.

    cc @1ec5

  5. added
    Android
    on Jun 2, 2016
  6. added this to the ios-v3.3.0 milestone on Jun 23, 2016
  7. self-assigned this
    on Jun 23, 2016
  8. boundsj commented on Jun 24, 2016

    @boundsj
    ContributorAuthor

    This was recently fixed in #5461 for iOS and Android was already using the same same solution.

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

Metadata

Metadata

Assignees

Labels

AndroidannotationsbugiOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions