You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
browser: Chrome Version 130.0.6723.117 (Official Build) (arm64) (MacOS, M2)
Steps to Trigger Behavior
map.setProjection({type: "vertical-perspective"})
map.setProjection({type: "globe"})
map.getProjection() still shows .type being "vertical-perspective" , instead of "globe"
Expected Behavior
After calling map.setProjection({type: "vertical-perspective"}) and then map.setProjection({type: "globe"}), we should get a .type value being "globe" when calling map.getProjection().
Actual Behavior
After calling map.setProjection({type: "vertical-perspective"}) and then map.setProjection({type: "globe"}), we still have a .type value of "vertical-perspective" when calling map.getProjection().
This means the animation is not possible from vertical-perspective directly to globe (where the animation should actually hardly show, since both are globe)
The text was updated successfully, but these errors were encountered:
This is currently planned to be solved as part of version 5. globe is not a projection, but a preset of vertical-perspective and mercator for different zoom levels.
Feel free to push this forward if you are eager to see this get it in.
CC: @birkskyum
maplibre-gl-js version: 5.0.0-pre.7
browser: Chrome Version 130.0.6723.117 (Official Build) (arm64) (MacOS, M2)
Steps to Trigger Behavior
map.setProjection({type: "vertical-perspective"})
map.setProjection({type: "globe"})
map.getProjection()
still shows.type
being"vertical-perspective"
, instead of"globe"
Expected Behavior
After calling
map.setProjection({type: "vertical-perspective"})
and thenmap.setProjection({type: "globe"})
, we should get a.type
value being"globe"
when callingmap.getProjection()
.Actual Behavior
After calling
map.setProjection({type: "vertical-perspective"})
and thenmap.setProjection({type: "globe"})
, we still have a.type
value of"vertical-perspective"
when callingmap.getProjection()
.This means the animation is not possible from
vertical-perspective
directly toglobe
(where the animation should actually hardly show, since both are globe)The text was updated successfully, but these errors were encountered: