Class: SocrataJson

nyc/ol/source/SocrataJson~ SocrataJson


new SocrataJson(options)

Create an instance of AutoLoad

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

Constructor options

Source:
See:

Extends

  • ol.source.Vector

Methods


<static> urlFunction(options)

Function to return a bbox URL

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

Constructor options

Source:
Returns:

Function that loads features by bbox

Type
ol.featureloader.FeatureLoader

Type Definitions


Options

Type:
  • Object
Properties:
Name Type Argument Default Description
url string | ol.featureloader.FeatureLoader

The URL or FeatureLoader function that returns a URL to a Socrata JSON endpoint

geometry string <optional>

The name of the geometry field

id string <optional>

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

token string <optional>

The Socrata token

limit string <optional>
2000000

The maximum number of records to return

Source: