Open JakubJagoda opened 3 days ago
I'm guessing you are referring to this issue, right?
Which was fixed by the following PR as part of pre.5
CC: @kubapelc
@HarelM yeah, I guess that was the issue for text. But just to be sure we're on the same page - this issue is about image. I only mentioned the text, because seeing it suffered similar problem and being fixed at some point, confirms to me that what I'm seeing with image is indeed a bug.
Sure, sure, I'm expecting a similar solution, that's why I mentioned it.
maplibre-gl-js version: 5.0.0-pre.7 EDIT: I originally created this issue against version 5.0.0-pre.6, but then I noticed that 5.0.0-pre.7 was out, so checked against it as well and updated the description.
browser: Chrome 131.0.6778.85 (Official Build) (arm64) / Firefox 132.0b9 (aarch64)
Steps to Trigger Behavior
symbol-placement
set to value other than"point"
Link to Demonstration
https://codepen.io/kuba-jagoda-asi/pen/YzmojqQ
Expected Behavior
The rendered image should visually retain its size
Actual Behavior
The image gets scaled up way too much
Some more info
It seems that this was also enlarging texts, but has been fixed somewhere between 5.0.0-pre.1 and 5.0.0-pre.6 (if you change the version to 5.0.0-pre.1 in the pen and repeat the steps, you'll see that the text was also scaled. This doesn't happen on 5.0.0-pre.6). This + the fact that it doesn't happen in Mapbox (example for reference: https://codepen.io/kuba-jagoda-asi/pen/JjgQBJE?editors=1010) makes be believe that it's not intended, but rather a bug. Changing layer's
symbol-placement
topoint
prevents this from happening. So does changingicon-pitch-alignment
to"viewport"
. But both render the layer in a bit different way (the image is not "sticked" to the globe anymore, but rather faces the camera). Here's some images to quickly show what I'm talking about:Maplibre 5.0.0-pre.6 (notice the large gray trapezoid):
Mapbox (the image remained non-scaled):
Maplibre 5.0.0-pre.1 (where text also got scaled - but this was fixed):