Skip to content

Commit

Permalink
Refresh GEE token for live demo
Browse files Browse the repository at this point in the history
- Adding project author credit
  • Loading branch information
IndigoWizard committed Jun 10, 2024
1 parent d354c91 commit 696479f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 51 deletions.
102 changes: 51 additions & 51 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_2878299e8d1f03ee079142e81d4b52fb {
#map_3fc97515a95b8519ff2cb6fbdd09c8c4 {
position: relative;
width: 100.0%;
height: 100.0%;
Expand All @@ -39,7 +39,7 @@
<body>


<div class="folium-map" id="map_2878299e8d1f03ee079142e81d4b52fb" ></div>
<div class="folium-map" id="map_3fc97515a95b8519ff2cb6fbdd09c8c4" ></div>


<head>
Expand Down Expand Up @@ -149,8 +149,8 @@ <h4>NBR Greyscale</h4>
<script>


var map_2878299e8d1f03ee079142e81d4b52fb = L.map(
"map_2878299e8d1f03ee079142e81d4b52fb",
var map_3fc97515a95b8519ff2cb6fbdd09c8c4 = L.map(
"map_3fc97515a95b8519ff2cb6fbdd09c8c4",
{
center: [36.6065, 2.324],
crs: L.CRS.EPSG3857,
Expand All @@ -159,130 +159,130 @@ <h4>NBR Greyscale</h4>
preferCanvas: false,
}
);
L.control.scale().addTo(map_2878299e8d1f03ee079142e81d4b52fb);
L.control.scale().addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);





var tile_layer_7f165fe2bb39bc7af3fa75e798e5d6ca = L.tileLayer(
var tile_layer_a9626f540afd9ef518595faf883bfc14 = L.tileLayer(
"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
{"attribution": "Dark Matter", "detectRetina": false, "maxNativeZoom": 20, "maxZoom": 20, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abcd", "tms": false}
);


tile_layer_7f165fe2bb39bc7af3fa75e798e5d6ca.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_a9626f540afd9ef518595faf883bfc14.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_cfc17bd07cee1f541e77b0903ab6a68c = L.tileLayer(
var tile_layer_8c7dfba9ffeb1eac5f04fef8c61fd3b5 = L.tileLayer(
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "OSM", "detectRetina": false, "maxNativeZoom": 19, "maxZoom": 19, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


var tile_layer_6886ffc63909d86e230a2bf4ef3af6e1 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/feb7fb4572ea612b838f70b513b73fae-e51e4f4a234de79b9e794fefe5529ebe/tiles/{z}/{x}/{y}",
var tile_layer_abebbce71b6414c3eb010fbc5759b291 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/6c7d71e97066eaaa04bffc2bdddb5c95-231270781c99a132a539d7373d6b6877/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_6886ffc63909d86e230a2bf4ef3af6e1.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_abebbce71b6414c3eb010fbc5759b291.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_4f899e95431aa180752ba4162b28af04 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/1096b0dd4635ad4f281061c7a249e039-22bb526354c3ad2efa3eef76e3bd3d47/tiles/{z}/{x}/{y}",
var tile_layer_538ea91fa8eaea71c7fec5ca5a5c580a = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/a814b2acd13c72fefd4fc02cf46147d3-2886addee4cefeb32932ee6db64c78bd/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_4f899e95431aa180752ba4162b28af04.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_538ea91fa8eaea71c7fec5ca5a5c580a.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_fb9b72e02240066a43b6211fa04d35fc = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/c53a8bba5603830a28d67dabe134f219-3fde9464768c7ffbdb2bce108f1949b5/tiles/{z}/{x}/{y}",
var tile_layer_26adef5e9898afd1801bc2d12cd748dc = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/f5314bda15543b139c994b1a433ebd69-94399fab158b958b1f3342ae3df174b5/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_fb9b72e02240066a43b6211fa04d35fc.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_26adef5e9898afd1801bc2d12cd748dc.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_546b12c5ea33ac73bd04d20dda56507c = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/16d5dc8c67eeca368b795ad0d39608a4-04b584bb94407da7aa6e7983b0d65e8e/tiles/{z}/{x}/{y}",
var tile_layer_267949ccdf8f70057cb6bdbf3da6e7d3 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/f46dcdaa612cba226fabc516de5bfc8e-58c269faf57deb9d164e28ed1724ecc5/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_546b12c5ea33ac73bd04d20dda56507c.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_267949ccdf8f70057cb6bdbf3da6e7d3.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_d438aca2995474f3c82b42a5f53cd705 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/6a0664562131a45866fcbe4d858a0aeb-9f27239421dfdd35a96fef6ac5195394/tiles/{z}/{x}/{y}",
var tile_layer_06d95d6547d24a93e72805cbf5c8c4b6 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/82dd74258bc7cf2d3c538be2e140877a-e8478f3f5f28f6901e810f854e5d93a3/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_d438aca2995474f3c82b42a5f53cd705.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_06d95d6547d24a93e72805cbf5c8c4b6.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_d0840bb2b0dc509714c46c180b51169f = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/cd4c733d865f519fad718f3399f8f80f-eb6f0dbe844f4a2eee58d9d1919ed4ea/tiles/{z}/{x}/{y}",
var tile_layer_404473a0da4c6ac7d111bd79ed7a8339 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/77a17105eb0afe93941fd68022f1f9a6-c8087712afab46011b6f9b691a2115ae/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_d0840bb2b0dc509714c46c180b51169f.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_404473a0da4c6ac7d111bd79ed7a8339.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_80c3d7ba0594ddec159f097624446a17 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/85fc61ae7a72d6d56623d2ac66062031-fda0696665347b257899f789d69e50f3/tiles/{z}/{x}/{y}",
var tile_layer_2eeb768e2ba5e35722ef720154c1e485 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/292278e10ba259736bf166ebb9eab4c6-f4c6e9c5f500c1a910b5652e128b1179/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_80c3d7ba0594ddec159f097624446a17.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_2eeb768e2ba5e35722ef720154c1e485.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_26514ea6163acee3ebcedfce58776e63 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/0a458dea98faa55c0b1673c7eb030642-04a2ab151fa74485fc4cabcd91a07b0d/tiles/{z}/{x}/{y}",
var tile_layer_39be54a23069efa15757fdbc1ef6ace6 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/5155c983858cb55e61b8ec23beb0568d-a77504ea1c26c66e9ca02379214def9f/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_26514ea6163acee3ebcedfce58776e63.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_39be54a23069efa15757fdbc1ef6ace6.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var tile_layer_ee552e5eb431ccece726e737e3b4e542 = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/0fa2b8c8a3100b105c0b63b4fe095362-d71b558b26be71a8bb84f810df93c058/tiles/{z}/{x}/{y}",
var tile_layer_e5289110ee681d6c9c1c798fa661e64a = L.tileLayer(
"https://earthengine.googleapis.com/v1/projects/ee-microclubist/maps/0fa2b8c8a3100b105c0b63b4fe095362-a5ae3ed0a715035fed4daf03d277d4fe/tiles/{z}/{x}/{y}",
{"attribution": "Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);


tile_layer_ee552e5eb431ccece726e737e3b4e542.addTo(map_2878299e8d1f03ee079142e81d4b52fb);
tile_layer_e5289110ee681d6c9c1c798fa661e64a.addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


var layer_control_2e8b5a973f97854e296883d1fc968982_layers = {
var layer_control_4885d03dcb20abf492c342c03e4ca648_layers = {
base_layers : {
"Dark Matter" : tile_layer_7f165fe2bb39bc7af3fa75e798e5d6ca,
"Open Street Map" : tile_layer_cfc17bd07cee1f541e77b0903ab6a68c,
"Dark Matter" : tile_layer_a9626f540afd9ef518595faf883bfc14,
"Open Street Map" : tile_layer_8c7dfba9ffeb1eac5f04fef8c61fd3b5,
},
overlays : {
"Sentinel-2 TCI (Pre-fire)" : tile_layer_6886ffc63909d86e230a2bf4ef3af6e1,
"Sentinel-2 TCI (Post-fire)" : tile_layer_4f899e95431aa180752ba4162b28af04,
"Pre-Fire NBR" : tile_layer_fb9b72e02240066a43b6211fa04d35fc,
"Post-Fire NBR" : tile_layer_546b12c5ea33ac73bd04d20dda56507c,
"dNBR" : tile_layer_d438aca2995474f3c82b42a5f53cd705,
"dNBR - Burn Severity" : tile_layer_d0840bb2b0dc509714c46c180b51169f,
"dNBR Classes" : tile_layer_80c3d7ba0594ddec159f097624446a17,
"Burn Scar" : tile_layer_26514ea6163acee3ebcedfce58776e63,
"Contour lines" : tile_layer_ee552e5eb431ccece726e737e3b4e542,
"Sentinel-2 TCI (Pre-fire)" : tile_layer_abebbce71b6414c3eb010fbc5759b291,
"Sentinel-2 TCI (Post-fire)" : tile_layer_538ea91fa8eaea71c7fec5ca5a5c580a,
"Pre-Fire NBR" : tile_layer_26adef5e9898afd1801bc2d12cd748dc,
"Post-Fire NBR" : tile_layer_267949ccdf8f70057cb6bdbf3da6e7d3,
"dNBR" : tile_layer_06d95d6547d24a93e72805cbf5c8c4b6,
"dNBR - Burn Severity" : tile_layer_404473a0da4c6ac7d111bd79ed7a8339,
"dNBR Classes" : tile_layer_2eeb768e2ba5e35722ef720154c1e485,
"Burn Scar" : tile_layer_39be54a23069efa15757fdbc1ef6ace6,
"Contour lines" : tile_layer_e5289110ee681d6c9c1c798fa661e64a,
},
};
let layer_control_2e8b5a973f97854e296883d1fc968982 = L.control.layers(
layer_control_2e8b5a973f97854e296883d1fc968982_layers.base_layers,
layer_control_2e8b5a973f97854e296883d1fc968982_layers.overlays,
let layer_control_4885d03dcb20abf492c342c03e4ca648 = L.control.layers(
layer_control_4885d03dcb20abf492c342c03e4ca648_layers.base_layers,
layer_control_4885d03dcb20abf492c342c03e4ca648_layers.overlays,
{"autoZIndex": true, "collapsed": false, "position": "topright"}
).addTo(map_2878299e8d1f03ee079142e81d4b52fb);
).addTo(map_3fc97515a95b8519ff2cb6fbdd09c8c4);


</script>
Expand Down
5 changes: 5 additions & 0 deletions webmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Original Project Author: IndigoWizard, Sep 24, 2022.
https://github.com/IndigoWizard/wildfire-burn-severity/
"""

import ee
from ee import image
import folium
Expand Down

0 comments on commit 696479f

Please sign in to comment.