Class: PlanetContext

Context. PlanetContext

Virtual globe where the camera is outside the globe. When an error happens at the initialisation, a message is displayed

new PlanetContext(mizarConfiguration, options)

Parameters:
Name Type Description
mizarConfiguration Mizar.configuration mizar configuration
options AbstractContext.planetContext planet context configuration

Extends

Methods


<protected> _fillDataProvider(layer, mizarDescription)

Fill data-provider-type layer by features coming from data object
Parameters:
Name Type Description
layer Layer layer in which data should be added.
mizarDescription Object See the base properties AbstractLayer.configuration and a specific layer for specific properties
Inherited From:

getTileManager()

Inherited From:
Implements:

registerNoStandardDataProvider(type, loadFunc)

Registers no standard data provider and call them in the addLayer method.
Parameters:
Name Type Description
type string data provider key
loadFunc function Function
Inherited From:
Example

Registers planets on the sky

var planetProvider = ProviderFactory.create(Constants.PROVIDER.Planet);
  this.registerNoStandardDataProvider("planets", planetProvider.loadFiles);

getContextConfiguration()

Inherited From:
Implements:

getMizarConfiguration()

Inherited From:
Implements:

getLonLatFromPixel()

Inherited From:
Implements:

getPixelFromLonLat()

Inherited From:
Implements:

getElevation()

Inherited From:
Implements:

getPositionTracker()

Inherited From:
Implements:

getElevationTracker()

Inherited From:
Implements:

getLayers()

Inherited From:
Implements:

getLayerByID()

Inherited From:
Implements:

getLayerByName()

Inherited From:
Implements:

addLayer()

Inherited From:
Implements:

removeLayer()

Inherited From:
Implements:

removeAllLayers()

Inherited From:
Implements:

addDraw()

Inherited From:
Implements:

removeDraw()

Inherited From:
Implements:

initTouchNavigation(options)

Initializes the touch navigation handler.
Parameters:
Name Type Description
options Object to add touch navigation
Properties
Name Type Description
navigation Navigation Navigation object
Inherited From:

refresh()

Inherited From:
Implements:

initCanvas(canvas)

Initialization of the canvas element. When no canvas element is provided, sets to full screen.
Parameters:
Name Type Description
canvas Object Canvas object
Properties
Name Type Argument Description
parentElement Object <nullable>
HTML object
Inherited From:

iniGlobeEvents(globe)

Initializes the planet or sky events.
Parameters:
Name Type Description
globe AbstractGlobe Planet or Sky object
Inherited From:

show()

Inherited From:
Implements:

showComponents()

Inherited From:
Implements:

hideComponents()

Inherited From:
Implements:

hide()

Inherited From:
Implements:

setComponentVisibility()

Inherited From:
Implements:

showAdditionalLayers()

Inherited From:
Implements:

hideAdditionalLayers()

Inherited From:
Implements:

setBackgroundLayer()

Inherited From:
Implements:

setBackgroundLayerByID()

Inherited From:
Implements:

getAdditionalLayers()

Inherited From:
Implements:

getRenderContext()

Inherited From:
Implements:

<abstract> disbable()

Inherited From:

<abstract> enable()

Inherited From:
Implements:

<abstract> setCompassVisible()

Inherited From:
Implements:

getMode()

Inherited From:
Implements:

<abstract> setCoordinateSystem()

Inherited From:
Implements:

getNavigation()

Inherited From:
Implements:

getCoordinateSystem()

Inherited From:
Implements:

addAnimation()

Inherited From:
Implements:

removeAnimation()

Inherited From:
Implements:

render()

Inherited From:
Implements:
  • Context#render

dispose()

Inherited From:
Implements:

<abstract> destroy()

Inherited From:
Implements: