Skip to content

map.transform.getCameraAltitude() returns NaN in globe projection #6584

@bigmistqke

Description

@bigmistqke

maplibre-gl-js version: 5.7.1

browser: //

Steps to Trigger Behavior

  1. initialize Map with globe projection
  2. check map.transform.getCameraAltitude()
  3. returns NaN

Link to Demonstration

https://jsbin.com/jelitabegi/edit?html,output

Expected Behavior

I expect it to return the camera altitude

Actual Behavior

it returns NaN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions