Skip to content

Commit

Permalink
Fix symbol size increase (#5275)
Browse files Browse the repository at this point in the history
* Update shader

* Allow raw image on tests

* Undo test suite change

* Add changelog
  • Loading branch information
ibesora authored Dec 27, 2024
1 parent 9c0ac3e commit 3d6d3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fix swallowing of errors ([#4532](https://github.com/maplibre/maplibre-gl-js/issues/4532))
- Fix erroring requests not reported on `error` handler ([#4613](https://github.com/maplibre/maplibre-gl-js/issues/4613))
- Fix children not retained when using globe ([#5271](https://github.com/maplibre/maplibre-gl-js/pull/5271))
- Fix symbol size increasing when looking from poles ([#5275](https://github.com/maplibre/maplibre-gl-js/pull/5275))
- _...Add new stuff here..._

## 5.0.0-pre.10
Expand Down
2 changes: 1 addition & 1 deletion src/shaders/symbol_icon.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void main() {

float projectionScaling = 1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {
if(u_pitch_with_map) {
float anchor_pos_tile_y = (u_coord_matrix * vec4(projected_pos.xy / projected_pos.w, z, 1.0)).y;
projectionScaling = mix(projectionScaling, 1.0 / circumferenceRatioAtTileY(anchor_pos_tile_y) * u_pitched_scale, u_projection_transition);
}
Expand Down

0 comments on commit 3d6d3f4

Please sign in to comment.