new AbstractGlobe(type, options)
Parameters:
| Name | Type | Description |
|---|---|---|
type |
GLOBE | Type of the globe. |
options |
AbstractGlobe.configuration | Options for globe creation. |
- Implements:
- See:
Throws:
-
-
Will throw an error when the options.coordinateSystem is not defined.
- Type
- ReferenceError
-
-
-
Will throw an error when options.coordinateSystem.geoideName is not part of CRS
- Type
- RangeError
-
-
-
Will throw an error when options.coordinateSystem.projectionName is not part of PROJECTION when it is defined
- Type
- RangeError
-
Methods
-
getType()
-
- Implements:
-
isSky()
-
- Implements:
-
dispose()
-
- Implements:
-
destroy()
-
- Implements:
-
refresh()
-
- Implements:
-
<abstract> setBaseImagery()
-
- Implements:
-
<abstract> getBaseElevation()
-
- Implements:
-
addLayer()
-
- Implements:
-
removeLayer()
-
- Implements:
-
addAnimation()
-
- Implements:
-
removeAnimation()
-
- Implements:
-
<abstract> getElevation()
-
- Implements:
-
getViewportGeoBound()
-
- Implements:
-
getLonLatFromPixel()
-
- Implements:
-
getPixelFromLonLat()
-
- Implements:
-
<abstract, protected> render()
-
- Implements:
- Globe#render
-
setCoordinateSystem()
-
- Implements:
-
getCoordinateSystem()
-
- Implements:
-
getRenderStats()
-
- Implements:
-
getRenderContext()
-
- Implements:
-
setRenderContext()
-
- Implements:
-
getTileManager()
-
- Implements:
-
isEnabled()
-
- Implements:
Type Definitions
-
dm_planet
-
Planet configuration data model
Type:
- Object
Properties:
Name Type Description canvasObject canvas object tileErrorTresholdint tile error treshold continuousRenderingboolean continuous rendering renderContextrenderContext | null Rendering context coordinateSystemAbstractCrs.crsFactory Coordinate reference system of the planet shadersPathstring = "../../shaders/" - Shaders location lightingboolean = false - Lighting backgroundColorArray.<float> = [0.0, 0.0, 0.0, 1.0] - Background color minFarint = 0 defaultColorArray.<int> = [200, 200, 200, 255] - Default color renderTileWithoutTextureboolean = true publishEventfunction Callback -
dm_sky
-
Planet configuration data model
Type:
- Object
Properties:
Name Type Argument Description canvasObject canvas object tileErrorTresholdint tile error treshold continuousRenderingboolean continuous rendering renderContextrenderContext <optional>
Rendering context coordinateSystemAbstractCrs.crsFactory Coordinate reference system of the planet lightingboolean = false - Lighting backgroundColorArray.<float> = [0.0, 0.0, 0.0, 1.0] - Background color minFarint radiusfloat defaultColorArray.<int> = [200, 200, 200, 255] - Default color shadersPathstring = "../../shaders/" - Shaders location renderTileWithoutTextureboolean = false publishEventfunction Callback -
configuration
-
AbstractGlobe configuration
Type:
- Object
Properties:
Name Type Argument Default Description options.continuousRenderingboolean <optional>
false Options that renders the globe in continue coordinateSystemAbstractCrs.crsFactory coordinate system data model renderContextObject <optional>
RenderContext object. shadersPathstring <optional>
../shaders/ Option for RenderContext : shader location. tileErrorTresholdint <optional>
4 Option for RenderContext : tile error lightingboolean <optional>
false Option for RenderContext : enable/disable lighting canvasObject | string Option for RenderContext : Canvas element to insert in the globe backgroundColorArray <optional>
[0.0, 0.0, 0.0, 1.0] Option for RenderContext : color for background minFarint <optional>
0 Option for RenderContext : When 0 , no limit on far defaultColorArray <optional>
[200, 200, 200, 255] Option for TileManager : pixel default color
Documentation