Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
andy.rothwell edited this page Aug 27, 2018 · 3 revisions

esri type dataSources

the 'esri' 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 in relation to the current geocoded address.

NonBundled Project Example:

dataSources {
  divisions: {
    url: 'https://services.arcgis.com/fLeGjb7u4uXqeF9q/arcgis/rest/services/Political_Divisions/FeatureServer/0',
    type: 'esri',
    options: {
      relationship: 'contains',
    },
    success(data) {
      return data;
    },
  }
};

Bundled Project Example:

export default {
  id: 'divisions',
  url: 'https://services.arcgis.com/fLeGjb7u4uXqeF9q/arcgis/rest/services/Political_Divisions/FeatureServer/0',
  type: 'esri',
  options: {
    relationship: 'contains',
  },
  success(data) {
    return data;
  },
};
Clone this wiki locally