Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
ember-arcgis-server-services
Advanced tools
Ember services for dealing with ArcGIS Map, Feature and Image Servers
Ember Services for working with ArcGIS Server Services.
Note This is still a very nascent project, and things will change.
Be sure to lock to a specific version in your own package.json
. We expect many breaking changes before a stable v1.0.0
public API is released.
After adding this to your project, you will have a number of services available for injection into your routes/controllers/services.
This project is now using ember-network/fetch
to enable fastboot compatibility.
To consume this library in any ember application:
ember install ember-arcgis-server-services
All the services expose a set of shared helper methods:
Method | Returns | Description |
---|---|---|
encodeForm | string | This is used internally. Formats an object into a html form. In most cases, not necessary to call this. |
request (url, options) | promise | This is used internally. Promisified xhr that does 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 | |
getServerInfo(url) | promise | Returns the f=json metadata for the server |
All functions supported by the Vector Service are all supported by Feature Service and Map Service
Method | Returns | Description |
---|---|---|
query(url, options) | promise | Query the feature service |
getById(url, id) | promise | Returns the record by Id |
getLayerInfo(url) | promise | Returns the f=json for the service |
getLayersInfo(url) | promise | Returns the f=json for all layers and tables in the service |
All the services expose a set of shared helper methods:
Method | Returns | Description |
---|---|---|
updateFeature(url, feature, token) | promise | Update a Feature |
updateFeatures(url, features, token) | promise | Update a set of Features |
addFeature(url, feature, token) | promise | Adds a Feature |
addFeatures(url, features, token) | promise | Adds a set of Features |
deleteFeature(url, feature, token) | promise | Delete a Feature |
deleteFeatures(url, features, token) | promise | Deletes a set of Features |
applyEdits(url, adds, updated, deletes, token) | promise | Applies a set of edits to the service |
Barring a catastrophic network or server failure, the ArcGIS Server API will always return a 200, which may contain error information in json.
ember server
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright 2017 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's LICENSE file.
1.2.0
FAQs
Ember services for dealing with ArcGIS Map, Feature and Image Servers
The npm package ember-arcgis-server-services receives a total of 4 weekly downloads. As such, ember-arcgis-server-services popularity was classified as not popular.
We found that ember-arcgis-server-services demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.