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 propertiesReturns:
Type Description string -
inherited addViewItem(viewItem)
-
Add viewItem to the view
Name Type Description viewItem -
inherited attachTo(divId)
-
Name Type Description divId -
beforeAddingItems($super, options)
-
Name Type Description $superoptions -
getAltitude(lat, lon){Number|undefined}
-
Name Type Description latlonReturns:
Type Description Number | undefined -
inherited getDataSourcesId(){Array}
-
Returns:
Type Description Array -
inherited getDivId(){string|*}
-
Returns:
Type Description string | * -
inherited getId(){string|*}
-
Returns:
Type Description string | * -
inherited handleEvents()
-
-
inherited hide()
-
-
inherited onResize()
-
-
inherited reset()
-
-
inherited selectDataView($super, dataSourcesIds, entitiesIds)
-
Should be called after receiving osh:SELECT_VIEW event
Name Type Description $superdataSourcesIdsentitiesIds -
inherited setData(dataSourceId, data)
-
Name Type Description dataSourceIddata -
inherited show(properties)
-
Show the view by removing display:none style if any.
Name Type Description properties -
inherited shows(properties)
-
Name Type Description properties -
updateDrapedImage(styler, timeStamp, options)
-
Name Type Description stylertimeStampoptions -
updateMapMarker(id, properties)
-
Name Type Description idproperties -
updateMarker(styler, timeStamp, options)
-
Name Type Description stylertimeStampoptions