-
Notifications
You must be signed in to change notification settings - Fork 9
esri nearby
andy.rothwell edited this page Aug 27, 2018
·
3 revisions
The 'esri-nearby' type for dataSources retrieval is for querying spatial data that IS stored in an ESRI product like ArcGIS Online or ArcGIS Server.
It finds the features of the dataset you are querying which are within a distance of the current geocoded address. If you do not put in a "distances" option, it uses 250 feet.
NonBundled Project Example:
dataSources {
neighboringProperties: {
type: 'esri-nearby',
url: 'https://services.arcgis.com/fLeGjb7u4uXqeF9q/ArcGIS/rest/services/PWD_PARCELS/FeatureServer/0',
options: {
geometryServerUrl: '//gis.phila.gov/arcgis/rest/services/Geometry/GeometryServer/',
calculateDistance: true,
distances: 320,
}
}
}
Bundled Project Example:
export default {
id: 'neighboringProperties',
type: 'esri-nearby',
url: 'https://services.arcgis.com/fLeGjb7u4uXqeF9q/ArcGIS/rest/services/PWD_PARCELS/FeatureServer/0',
options: {
geometryServerUrl: '//gis.phila.gov/arcgis/rest/services/Geometry/GeometryServer/',
calculateDistance: true,
distances: 320,
}
}