Skip to content
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