Class: SocrataJson

nyc/ol/format/SocrataJson~ SocrataJson


new SocrataJson(options)

Create an instance of SocrataJson

Parameters:
Name Type Description
options module:nyc/ol/format/SocrataJson~SocrataJson.Options

Constructor options

Source:

Extends

  • ol.format.Feature

Methods


<protected> readFeatureFromObject(object [, options])

Read JSON a feature

Parameters:
Name Type Argument Description
object Object

Object

options ol.Feature.ReadOptions <optional>

Read options

Source:
Returns:

Feature

Type
ol.Feature

<protected> readFeaturesFromObject(object [, options])

Read JSON features

Parameters:
Name Type Argument Description
object Object

Object

options ol.Feature.ReadOptions <optional>

Read options

Source:
Returns:

Features

Type
Array.<ol.Feature>

<protected> readProjection(source)

Read the projection from a source

Parameters:
Name Type Description
source Document | Node | Object | string

Source

Source:
Returns:

Projection

Type
ol.Projection

Type Definitions


Options

Type:
  • Object
Properties:
Name Type Argument Description
geometry string <optional>

The name of the geometry field

id string <optional>

The name of the field containing the unique id of the point

Source: