@wsdot/arcgis-query-string-utilities
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.3 • Public • Published

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

Package Sidebar

Install

npm i @wsdot/arcgis-query-string-utilities

Weekly Downloads

1

Version

2.0.0-alpha.3

License

Unlicense

Unpacked Size

22.5 kB

Total Files

5

Last publish

Collaborators

  • jeff-jacobson