arcgis-hash-bang-widget
v1.0.1
Published
An ArcGIS JS V4 widget that gets and sets the URL hash, or does something else.
Downloads
2
Maintainers
Readme
arcgis-hash-bang-widget
:hash: An ArcGIS JS V4 widget that gets and sets the URL hash, or does something else. Less bang, more hash.
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