2.0.0-alpha.3 • Published 6 years ago

@wsdot/arcgis-query-string-utilities v2.0.0-alpha.3

Weekly downloads
-
License
Unlicense
Repository
github
Last release
6 years ago

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.

Demo

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);
});