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 dataSourceIdsArray the list of datasources
fnfunction the function to apply
-
clear($super)
-
Name Type Description $super -
inherited getDataSourcesIds(){Array}
-
Returns:
Type Description Array -
inherited getId(){string}
-
Gets the styler id.
Returns:
Type Description string the styler id -
init($super, view)
-
Name Type Description $superview -
inherited initEvents()
-
-
inherited select(dataSourceIds)
-
Selects the datasource contained into the list
Name Type Description dataSourceIdsArray the list of datasources
-
setData($super, dataSourceId, rec, view, options)
-
Name Type Description $superdataSourceIdrecviewoptions