-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] fix collisionBox alignment when Icon/text translation is enabled #15467
Conversation
ab82142
to
0aa5faa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice! My only concern is memory usage, @zmiao do you have some estimations of the memory consumption impact caused by the change?
@pozdnyakov , @zmiao |
The icon collision data might require more memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, for rendering fix, +1 for comments from @pozdnyakov
One thing is unclear, should we move collision feature when icon / text is translated? If so, #13526 is only partially fixed.
@pozdnyakov @astojilj the number of the vertexes remains the same, only change is the container is split as two which hold text and icon separately. So no extra memory is added. |
I guess it's just |
Fix partially of #13526
Render test: mapbox/mapbox-gl-js#8659