Class: PointMarker

OSH.UI.Styler. PointMarker

new OSH.UI.Styler.PointMarker()

Example

var pointMarker = new OSH.UI.Styler.PointMarker({
location : {
x : 1.42376557,
y : 43.61758626,
z : 100
},
locationFunc : {
dataSourceIds : [androidPhoneGpsDataSource.getId()],
handler : function(rec) {
return {
x : rec.lon,
y : rec.lat,
z : rec.alt
};
}
},
orientationFunc : {
dataSourceIds : [androidPhoneOrientationDataSource.getId()],
handler : function(rec) {
return {
heading : rec.heading
};
}
},
icon : 'images/cameralook.png',
iconFunc : {
dataSourceIds: [androidPhoneGpsDataSource.getId()],
handler : function(rec,timeStamp,options) {
if(options.selected) {
return 'images/cameralook-selected.png'
} else {
return 'images/cameralook.png';
};
}
}
});

Extends

Methods

inherited addFn(dataSourceIds, fn)

Adds a function

Name Type Description
dataSourceIds Array

the list of datasources

fn function

the function to apply

Name Type Description
$super

inherited getDataSourcesIds(){Array}

Returns:
Type Description
Array

Gets the styler id.

Returns:
Type Description
string the styler id
Name Type Description
$super
view

Selects the datasource contained into the list

Name Type Description
dataSourceIds Array

the list of datasources

setData($super, dataSourceId, rec, view, options)

Name Type Description
$super
dataSourceId
rec
view
options