@wsdot/arcgis-query-string-utilities
v2.0.0-alpha.3
Published
Updates the query string as a map's extent is changed.
Downloads
1
Maintainers
Readme
ArcGIS API for JavaScript Query String Utilities
Uses URL API and Browser History to update the web browsers URL query string as a map's extent is changed.
Installation
Run the following command to install this module into your project.
npm install @wsdot/arcgis-query-string-utilities --save
Usage
require(["esri/map", "QueryStringManager"], function (Map, QueryStringManager) {
var map;
var mapOptions = {
basemap: "hybrid",
center: [-120.80566406246835, 47.41322033015946],
zoom: 7,
showAttribution: true
};
// Update the map constructor options with those defined in the query string.
mapOptions = QueryStringManager.getMapInitOptions(mapOptions);
map = new Map("map", mapOptions);
var qsManager = new QueryStringManager(map);
});