Class: Map3dModel

Core Map3dModel

Map3dModel

Extends

Methods

activateMap3d(){void}

modules/core/map3d.js, line 67
Activates the map3d if it not already set. If mapmode is "Oblique" it deactivates it.
Fires:

createMap3d(){OLCesium}

modules/core/map3d.js, line 332
Creates the olcesium 3d map.
Fires:
Returns:
ol cesium map.

deactivateMap3d(){void}

modules/core/map3d.js, line 188
Deactivates the 3d mode.
Fires:

deactivateOblique(){void}

modules/core/map3d.js, line 122
Deactivates oblique mode and listens to change event to activate 3d mode.
Fires:
Listens to Events:

getFeatures3dAtPosition(position){Array.<Object>}

modules/core/map3d.js, line 245
Retrieves the features that are at a given 3d coordinate.
Name Type Description
position Array.<Number> 3d coordinate array.
Returns:
found objects

getShadowTime(){Cesium.JulianDate}

modules/core/map3d.js, line 360
Returns the shadowTime.
Returns:
shadow time in julian date format.

handle3DEvents(scene){void}

modules/core/map3d.js, line 231
Logic to listen to click events in 3d mode.
Name Type Description
scene Cesium.scene Cesium scene.

isMap3d(){Boolean}

modules/core/map3d.js, line 352
Checks if map in in 3d mode
Returns:
if map is in 3d mode and enabled.

prepareCamera(scene){void}

modules/core/map3d.js, line 106
Prepares the camera and listens to camera changed events.
Name Type Description
scene Cesium.scene Cesium scene.

prepareScene(scene){void}

modules/core/map3d.js, line 96
Prepares the cesium scene.
Name Type Description
scene Cesium.scene Cesium scene.

reactTo3DClickEvent(event){void}

modules/core/map3d.js, line 139
Reacts to 3d click event in cesium scene.
Name Type Description
event Event The cesium event.
Fires:

reactToCameraChanged(){void}

modules/core/map3d.js, line 219
Reacts if the camera has changed.
Fires:

setCameraParameter(params){void}

modules/core/map3d.js, line 262
Sets the camera parameters either from config or from an trigger.
Name Type Description
params Object Params.

setCesiumSceneDefaults(scene){void}

modules/core/map3d.js, line 302
Sets the cesium scene defaults from the config.js
Name Type Description
scene Cesium.scene Cesium scene.

setMap3d(map3d){void}

modules/core/map3d.js, line 378
Setter for attribute "map3d".
Name Type Description
map3d OLCesium ol cesium map.

setShadowTime(shadowTime){void}

modules/core/map3d.js, line 369
Setter for attribute "shadowTime".
Name Type Description
shadowTime Cesium.JulianDate Shadow time in julian date format.