Skip to content

EllipsoidTerrainProvider does not conform to the TerrainProvider interface #12485

@angrycat9000

Description

@angrycat9000

What happened?

TerrainProvider has availablity defined as TileAvailablity.

* @type {TileAvailability}

However EllipsoidTerrainProvider returns undefined for availabilty. This does not satisfy TileAvailabity

Found this because sampleHeightsMostDetailed takes a TerrainProvider but throws an error if EllipsoidTerrainProvider is passed.

In the app I was working with the terrain provider may change based on user input. So there isn't a good way to have a single code path that gets the most detailed height. Had to put in a check to to see if the current terrain provider was in instance of EllipsoidTerrainProvider before calling sampleHeightsMostDetailed

Reproduction steps

No response

Sandcastle example

No response

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions