Class: Polyline

OSH.UI.Styler. Polyline

new OSH.UI.Styler.Polyline()

Example

var polylineStyler = new OSH.UI.Styler.Polyline({
locationFunc : {
dataSourceIds : [datasource.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
});

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

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