Class: Decorate

nyc/ol/format/Decorate~ Decorate


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

Source:
See:

Extends

  • ol.format.Feature

Methods


decorate(feature)

Decorate a feature

Parameters:
Name Type Description
feature ol.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
source Object

A row from a vector data source

options olx.format.ReadOptions <optional>

Read options

Source:

readFeatures(source [, options])

Read all features from a source

Parameters:
Name Type Argument Description
source Array.<Object>

Rows from a vector data source

options olx.format.ReadOptions <optional>

Read options

Source:
Returns:

Features

Type
Array.<ol.Feature>

readProjection(source)

Read the projection from a source

Parameters:
Name Type Description
source Document | 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
Properties:
Name Type Description
parentFormat ol.format.Feature

The parent format for creating features to decorate

decorations Array.<Object.<string, Object>>

The objects used to decorate features

Source: