JSPM

arcgis-hash-bang-widget

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q43466F
  • License MIT

An ArcGIS JS V4 widget that gets and sets the URL hash, or does something else.

Package Exports

  • arcgis-hash-bang-widget

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arcgis-hash-bang-widget) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

arcgis-hash-bang-widget

#️⃣ An ArcGIS JS V4 widget that gets and sets the URL hash, or does something else. Less bang, more hash.

npm

Create the widget

require([
  "custom-widgets/HashBang"
], function(HashBang) {

  // create your map and view

  var hashBang = new HashBang({
    view: view,
    silentMode: true // default is false
  });

If you set silentMode to true then the viewpoint will be stored in the browsers localStorage and leave the URL hash alone.

Get it from here or via npm npm install arcgis-hash-bang-widget --save

Running locally

Download / clone this repository then run npm install > npm start