Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-arcgis-server-services

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-arcgis-server-services

The default blueprint for ember-cli addons.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
3
Weekly downloads
 
Created
Source

ember-arcgis-server-services

Ember Services for working with ArcGIS Server Services.

Note This is still a very nascent project, and things will change.

If you use this project, be sure to lock to a specific version in your package.json.

We expect this project to have many releases before the 1.0.0 "Public API" stabilization.

ArcGIS Server Services

After adding this to your project, you will have a number of services available for injection into your routes/controllers/services.

Dependencies

This project is now using ember-network/fetch to enable fastboot compatibility. Please also ember install ember-network

Installation

  • ember install ember-arcgis-server-services

Shared Methods

All the services expose a set of shared helper methods:

MethodReturnsDescription
encodeFormstringThis is used internally. Formats an object into a html form. In most cases, not necessary to call this.
request (url, options)promiseThis is used internally. Promisified xhr that does not basic handling of Portal's 400-in-a-200 errors
parseServiceUrl (url)Parses up the url and returns a hash of useful information - the service url, type, layerId if present, orgId if hosted

Feature Service

All the services expose a set of shared helper methods:

MethodReturnsDescription
query(url, options)promiseQuery the feature service
getById(url, id)promiseReturns the record by Id
updateFeature(url, feature, token)promiseUpdate a Feature
updateFeatures(url, features, token)promiseUpdate a set of Features
addFeature(url, feature, token)promiseAdds a Feature
addFeatures(url, features, token)promiseAdds a set of Features
deleteFeature(url, feature, token)promiseDelete a Feature
deleteFeatures(url, features, token)promiseDeletes a set of Features
applyEdits(url, adds, updated, deletes, token)promiseApplies a set of edits to the service
getLayerInfo(url)promiseReturns the f=json for the service

Handling Error Conditions

Barring a catastrophic network or server failure, the ArcGIS Server API will always return a 200, which main contain error information in json.

Running

  • ember serve
  • Visit your app at http://localhost:4200.

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

Keywords

FAQs

Package last updated on 16 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc