new Decorate(options)
Class to create point features from CSV data
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/ol/format/Decorate~Decorate.Options | Constructor options |
Extends
- ol.format.Feature
Methods
-
decorate(feature)
-
Decorate a feature
Parameters:
Name Type Description featureol.Feature The feature to decorate
- Source:
-
getType()
-
Return format type
- Source:
Returns:
The format type
- Type
- ol.format.FormatType
-
readFeature(source [, options])
-
Read a single feature from a source
Parameters:
Name Type Argument Description sourceObject A row from a vector data source
optionsolx.format.ReadOptions <optional>
Read options
- Source:
-
readFeatures(source [, options])
-
Read all features from a source
Parameters:
Name Type Argument Description sourceArray.<Object> Rows from a vector data source
optionsolx.format.ReadOptions <optional>
Read options
- Source:
Returns:
Features
- Type
- Array.<ol.Feature>
-
readProjection(source)
-
Read the projection from a source
Parameters:
Name Type Description sourceDocument | Node | Object | string Source
- Source:
Returns:
The projection
- Type
- ol.proj.Projection
Type Definitions
-
Options
-
Constructor options for module:nyc/ol/format/Decorate~Decorate
Type:
- Object
- Source:
Properties:
Name Type Description parentFormatol.format.Feature The parent format for creating features to decorate
decorationsArray.<Object.<string, Object>> The objects used to decorate features