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
-
Constructor options for module:nyc/ol/format/SocrataJson~SocrataJson
Type:
- Object
- Source:
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