maps.nyc.gov

Class: CsvPointFeatureLoader

nyc.ol.source.CsvPointFeatureLoader

new CsvPointFeatureLoader(options) → {function}

A ol.FeatureLoader function for loading CSV point features
Parameters:
Name Type Description
options nyc.ol.source.CsvPointFeatureLoader.Options Options specifying the file parameters for loading features
Source:
See:
Fires:
Returns:
Type
function

Type Definitions

Options

Constructor options for {nyc.ol.source.CsvPointFeatureLoader}. Either xCol and yCol or a geomParser are required.
Type:
  • Object
Properties:
Name Type Attributes Description
url string URL to a CSV file
xCol string <optional>
Name of the CSV column containing X coordinate of feature location. Either xCol and yCol or a geomParser are required.
yCol string <optional>
Name of the CSV column containing Y coordinate of feature location. Either xCol and yCol or a geomParser are required.
geomParser function <optional>
A function to parse a point from a CSV row
projection string Source data projection
Source: