new CsvAddr(options)
Class to create point features from CSV data
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/ol/format/CsvAddr~CsvAddr.Options | Constructor options |
Extends
- ol.format.Feature
Methods
-
readFeatures(source [, options])
-
Read all features from a source
Parameters:
Name Type Argument Description sourceObject Rows from a CSV data source
optionsolx.format.ReadOptions <optional>
Read options
- Source:
Returns:
Features
- Type
- Array.<ol.Feature>
-
setGeocode(feature, geocode)
-
Set the feature geocode result and geometry
Parameters:
Name Type Description featureol.Feature The feature
geocodemodule:nyc/Locator~Locator.Result A geocoder response
- Source:
-
setGeometry(feature, source)
-
Set the feature geometry
Parameters:
Name Type Description featureol.Feature The feature
sourceObject.<string, string> A row from a CSV data source
- Source:
Type Definitions
-
Options
-
Constructor options for module:nyc/ol/format/CsvAddr~CsvAddr
Type:
- Object
- Source:
Properties:
Name Type Argument Default Description autoDetectboolean <optional>
false Attempt to determine standard column names and projection
xmodule:nyc/Geocoder~Geocoder The geocoder to use for geocoding feature
locationTemplatestring The location template for generating a location string to pass to the geocoder