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 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 -
-
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