Skip to content

Conversation

@matteblair
Copy link
Member

This resolves the issue as far as I can tell. The surrounding code is too complex for me to tell whether this is an egregious hack. If it isn't, I recommend merging this so that we can provide the Mapzen Android SDK with an updated release.

m_needUpdate |= label->evalState(dt);
label->addVerticesToMesh();
}
m_allLabels.emplace_back(label.get(), tile, isProxy);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the bug of non colliding labels are not checked when retrieving the labels for selection color. Instead of putting all visible labels for selection color checking, does it make sense to only put labels with "interactive" property set for selection color checking? Say if only pois are marked interactive, it will be wasteful to check for all text labels for selection colors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be identified by checking the featureId of the label to be non zero. If its non-zero it was marked interactive, as a valid selectionColor was set for this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that's a good point! @hjanetzek also proposed it, I will clean up that branch since it's a lot of debug code and will update for that.

@karimnaaji
Copy link
Member

@blair1618 this is not an egregious hack, this is the actual fix for the problem explained here #1184 (comment).

Copy link
Member

@tallytalwar tallytalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yoda: not hot-fix but a proper fix this is, I say.

Copy link
Member

@hjanetzek hjanetzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

late to the party... everything is merged already

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants