Classes
Namespaces
Methods
-
<static> getElevationFromPixel(pixel)
-
Convert pixel (terrain-RGB) to elevation
Parameters:
Name Type Description pixel
Array.<number> the pixel value
Returns:
elevation
- Type
- number
-
<static> getMapCanvas(map)
-
Get a canvas overlay for a map (non rotated, on top of the map)
Parameters:
Name Type Description map
ol.Map Returns:
- Type
- canvas
-
<static> getPixelFromElevation(height)
-
Convert elevation to pixel as terrain-RGB Encode elevation data in raster tiles
- max deep watter trench min > -12000 m
- 2 digits (0.01 m)
Parameters:
Name Type Description height
number elevation
Returns:
pixel value
- Type
- Array.<number>
-
<static> getVectorContextStyle(e, s)
-
Get style to use in a VectorContext
Parameters:
Name Type Description e
s
ol.style.Style Returns:
- Type
- ol.style.Style
-
<static> TextStreamReader(options)
-
Text file reader (chunk by chunk, line by line). Large files are read in chunks and returned line by line to handle read progress and prevent memory leaks.
Parameters:
Name Type Description options
Object Properties
Name Type Argument Default Description file
File <optional>
chunkSize
number <optional>
1E6