arcgis-circadian-widget

An ArcGIS JS V4 widget that changes the map tint based on the time of day.

Usage no npm install needed!

<script type="module">
  import arcgisCircadianWidget from 'https://cdn.skypack.dev/arcgis-circadian-widget';
</script>

README

arcgis-circadian-widget

:sunrise: An ArcGIS JS V4 widget that changes the map tint based on the time of day.

npm

Include the style, create the widget

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

  // create your map and view

  var c = new Circadian();
  c.startup();

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

Running locally

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

example