ember-data-arcgis-opendata

0.1.1 • Public • Published

Ember-Data ArcGIS OpenData

Ember Data model and adapters for the ArcGIS OpenData API

Notes

This is beta software. The intention of this add-on is to enable an application to work with the ArcGIS Open Data api. It is being built incrementally, and does not currently encompass the entire API.

Usage

Create a project using ember-cli. If you have an existing ember-cli project, skip this step.

$ ember new my-new-app

Add Torii, the ArcGIS torii provider and this add-on to the project

$ ember install torii
$ ember install torii-provider-arcgis
$ ember install ember-data-arcgis-opendata

Now edit /config/environment.js to add your Torii provider configuration.

module.exports = function(environment) {
  var ENV = {

   // ... other ENV config stuff here

   torii:{
      sessionServiceName: 'session',
      providers: {
        'arcgis-oauth-bearer': {
          apiKey: 'APP CLIENT ID GOES HERE',
          portalUrl: 'https://someportal.com' //optional - defaults to https://www.arcgis.com
        }
      }
    }
  };

  return ENV;
};

The application will now have access to the following models:

The model will automatically be available to the Ember Data store in the consuming application. Please see the Ember Guides for details on how to find records or other operations.

/ember-data-arcgis-opendata/

    Package Sidebar

    Install

    npm i ember-data-arcgis-opendata

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • dbouwman
    • mjuniper
    • tomwayson