Skip to content

Improve way name runtime styling performance #1222

@danesfeder

Description

@danesfeder

We've been seeing some performance issues with the location icon / way name below it since the way name feature was added (mainly "jumping").

I suspect this is the WaynameView bitmap generation and then being added with MapboxMap#addImage every time we need to update the text.

@tobrun mentioned when initially reviewing that PR that this was a pretty performance intensive task from a Maps SDK perspective.

If we want to keep this runtime styling approach, I think it might may sense to switch to something like mapbox/mapbox-plugins-android#401 and then figure out the "pill" background.

The only other alternative I can think of would be creating a normal Android View and anchoring it above the bottom sheet.

cc @1ec5

Metadata

Metadata

Assignees

Labels

bugDefect to be fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions