new SocrataJson(options)
Class to create point features from Socrata data
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/ol/format/SocrataJson~SocrataJson.Options | Constructor options |
- Source:
Extends
- ol.format.Feature
Methods
-
getLastExtent()
-
Get the last extent
- Source:
Returns:
Extent
- Type
- ol.extent
-
<protected> readFeatureFromObject(object [, options])
-
Read JSON a feature
Parameters:
Name Type Argument Description objectObject Object
optionsol.Feature.ReadOptions <optional>
Read options
- Source:
Returns:
Feature
- Type
- ol.Feature
-
<protected> readFeaturesFromObject(object [, options])
-
Read JSON features
Parameters:
Name Type Argument Description objectObject Object
optionsol.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 sourceDocument | Node | Object | string Source
- Source:
Returns:
Projection
- Type
- ol.Projection
-
setLastExtent(extent)
-
Set the last extent
Parameters:
Name Type Description extentol.extent The last extent
- Source:
Type Definitions
-
Options
-
Constructor options for module:nyc/ol/format/SocrataJson~SocrataJson
Type:
- Object
- Source:
Properties:
Name Type Argument Description geometrystring <optional>
The name of the geometry field
idstring <optional>
The name of the field containing the unique id of the point