Class: CesiumView

OSH.UI. CesiumView

new OSH.UI.CesiumView()

Example

var cesiumMapView = new OSH.UI.CesiumView("",
[{
styler : pointMarker,
contextMenuId: circularContextMenuId,
name : "Android Phone GPS",
entityId : androidEntity.id
},
{
styler : new OSH.UI.Styler.Polyline({
locationFunc : {
dataSourceIds : [androidPhoneGpsDataSource.getId()],
handler : function(rec) {
return {
x : rec.lon,
y : rec.lat,
z : rec.alt
};
}
},
color : 'rgba(0,0,255,0.5)',
weight : 10,
opacity : .5,
smoothFactor : 1,
maxPoints : 200
}),
name : "Android Phone GPS Path",
entityId : androidEntity.id
}]
);

Extends

Methods

addMarker(properties){string}

Name Type Description
properties
Returns:
Type Description
string

inherited addViewItem(viewItem)

Add viewItem to the view

Name Type Description
viewItem
Name Type Description
divId

beforeAddingItems($super, options)

Name Type Description
$super
options

getAltitude(lat, lon){Number|undefined}

Name Type Description
lat
lon
Returns:
Type Description
Number | undefined

inherited getDataSourcesId(){Array}

Returns:
Type Description
Array

inherited getDivId(){string|*}

Returns:
Type Description
string | *
Returns:
Type Description
string | *

inherited selectDataView($super, dataSourcesIds, entitiesIds)

Should be called after receiving osh:SELECT_VIEW event

Name Type Description
$super
dataSourcesIds
entitiesIds

inherited setData(dataSourceId, data)

Name Type Description
dataSourceId
data

Show the view by removing display:none style if any.

Name Type Description
properties
Name Type Description
properties

updateDrapedImage(styler, timeStamp, options)

Name Type Description
styler
timeStamp
options

updateMapMarker(id, properties)

Name Type Description
id
properties

updateMarker(styler, timeStamp, options)

Name Type Description
styler
timeStamp
options