-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Description
What happened?
TerrainProvider has availablity defined as TileAvailablity.
| * @type {TileAvailability} |
However EllipsoidTerrainProvider returns undefined for availabilty. This does not satisfy TileAvailabity
| return undefined; |
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
Reactions are currently unavailable