npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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.

install

npm i ember-data-arcgis-opendata

Downloadsweekly downloads

54

version

0.1.1

license

MIT

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability