Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
arcgis-server-store
Advanced tools
An implementation of the dojo/store API for ArcGIS Server REST services
#arcgis-server-store
An implementation of the dojo/store API for ArcGIS Server REST services.
Download, clone, or fork from GitHub, or install using a package manager.
Bower:
bower install --save arcgis-server-store
NPM:
npm install --save arcgis-server-store
Configure the Dojo loader for use with the ArcGISServerStore.
var dojoConfig = {
packages: [{
name: 'ArcGISServerStore',
location: 'path/to/store',
main: 'ArcGISServerStore'
}]
};
See the Configuring Dojo with dojoConfig tutorial for more details on configuring the AMD loader.
Create a store using an ArcGIS REST service. See the properties section for more details on the available options.
require([
'ArcGISServerStore'
], function(
ArcGISServerStore
) {
var url = 'http://example.com/path/to/service/FeatureServer/0';
var store = new ArcGISServerStore({
url: url,
idProperty: 'OBJECTID',
flatten: true,
outFields: ['NAME', 'CATEGORY'],
returnGeometry: false
});
});
Use a Cache Store as needed to improve performance:
var memStore = new Memory();
var cachedStore = new Cache(store, memStore);
Use it in a dijit:
var filteringSelect = new FilteringSelect({
store: store,
searchAttr: 'NAME'
});
or to manage data:
// Add an object
store.add({NAME: 'New', CATEGORY: 'Sample Data'});
// Retrieve an object
store.get(1);
// Update an object
store.put({OBJECTID: 1, NAME: 'Edited'});
// Query for objects
store.query({NAME: 'Edited'});
var q = new Query();
q.where = 'OBJECTID < 4';
store.query(q);
// Remove an object
store.remove(1);
// Batch updates
var trans = store.transaction();
store.add({NAME: 'New', CATEGORY: 'Sample Transaction'});
store.put({OBJECTID: 2, NAME: 'Edited', CATEGORY: 'Transaction'});
trans.commit();
Refer to the ArcGISServerStore documentation for more information.
Find a bug or want to suggest an improvement? Please submit an issue.
Your contributions are welcome!
Although there is no formal styleguide, please be careful to match the existing style. Please include unit tests with any changed or new functionality, and use grunt to lint your code.
To contribute:
Testing is done in the browser with Intern.
npm install
to install local dependencies.grunt setup
to download the ArcGIS API for JavaScript libraries.Note: Commands listed in this section are all written assuming they are run inside the repositories root directory.
This project is available under the MIT License.
FAQs
An implementation of the dojo/store API for ArcGIS Server REST services
The npm package arcgis-server-store receives a total of 4 weekly downloads. As such, arcgis-server-store popularity was classified as not popular.
We found that arcgis-server-store demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.