You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
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
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.
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.
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.
Activity
jfirebaugh commentedon Jun 1, 2016
The SDK is trying to add a point annotation with the
iconproperty 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.
boundsj commentedon Jun 2, 2016
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
boundsj commentedon Jun 24, 2016
This was recently fixed in #5461 for iOS and Android was already using the same same solution.