Open jonathanlurie opened 3 days ago
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)