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

Ensure that LiveTileData can be reparsed #2393

Closed
wants to merge 1 commit into from
Closed

Conversation

jfirebaugh
Copy link
Contributor

Annotation tiles may become partially parsed just like regular tiles, for example if a point annotation is added to the map before the style's sprite has been loaded. In such cases, they need to be reparsed or the annotation will not be rendered. Previously, the code path for reparsing would be short-circuited by a dynamic_cast<VectorTileData*> followed by a null check. This commit removes that case and adds (back) a virtual reparse method to the TileData interface.

This is the first of several fixes for annotation rendering. I found it in the course of debugging why the existing PointAnnotation test was not actually rendering a marker. In addition to these changes, we need to make that test actually fail if the rendering does not match the expected rendering. This again requires some sort of forgiving image similarity test, or exposing annotations in the node bindings so that we can test in JS and use our existing comparison method.

👀 @tmpsantos this touches partial parsing, can you give it a look?

Annotation tiles may become partially parsed just like regular tiles,
for example if a point annotation is added to the map before the style's
sprite has been loaded. In such cases, they need to be reparsed or the
annotation will not be rendered. Previously, the code path for reparsing
would be short-circuited by a dynamic_cast<VectorTileData*> followed by
a null check. This commit removes that case and adds (back) a virtual
reparse method to the TileData interface.
@jfirebaugh
Copy link
Contributor Author

Subsumed by #2393. @tmpsantos 👀 still welcome there.

@jfirebaugh jfirebaugh closed this Sep 24, 2015
@jfirebaugh jfirebaugh deleted the annotation-test branch September 24, 2015 23:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant