From 34cd9e6ab52b1b44ad898763f5fa25c41dd864ec Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 2 Oct 2024 22:16:57 +0000 Subject: [PATCH] Updated MapLibre maps 2024-10-02 UTC --- demos/global_surface_water.html | 2 +- demos/guam.html | 2 +- demos/nyc.html | 2 +- maplibre/google_earth_engine.html | 2 +- maplibre/google_earth_engine_1.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/global_surface_water.html b/demos/global_surface_water.html index 1305b3f..04cb607 100644 --- a/demos/global_surface_water.html +++ b/demos/global_surface_water.html @@ -26,7 +26,7 @@ // ... (() => { - var data = {"mapOptions": {"bearing": 0, "center": [0, 20], "pitch": 0, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hybrid": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/hybrid/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "hybrid", "type": "raster", "source": "hybrid"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 1, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "Water Occurrence", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/90576c92fc98e96f9189fae348aadba9-04a1068d183ea8e3a215f8dcd353c9c7/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["Water Occurrence", "visibility", "visible"]], ["setPaintProperty", ["Water Occurrence", "raster-opacity", 0.8]], ["addControl", ["InfoBoxControl", {"content": "", "cssText": "font-size: 20px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["Water Occurrence"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; + var data = {"mapOptions": {"bearing": 0, "center": [0, 20], "pitch": 0, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hybrid": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/hybrid/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "hybrid", "type": "raster", "source": "hybrid"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 1, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "Water Occurrence", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/90576c92fc98e96f9189fae348aadba9-67c8cb0cdaab5b40f4e53491bf9a4821/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["Water Occurrence", "visibility", "visible"]], ["setPaintProperty", ["Water Occurrence", "raster-opacity", 0.8]], ["addControl", ["InfoBoxControl", {"content": "", "cssText": "font-size: 20px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["Water Occurrence"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; pymaplibregl(data); })(); diff --git a/demos/guam.html b/demos/guam.html index bf73ac1..abc37eb 100644 --- a/demos/guam.html +++ b/demos/guam.html @@ -26,7 +26,7 @@ // ... (() => { - var data = {"mapOptions": {"bearing": 30, "center": [144.716726, 13.37093], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 10.5, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-e2c078d9845a2b68cd6e4a3b206bfd05/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addSource", ["openmaptiles", {"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "type": "vector"}]], ["addLayer", [{"id": "buildings", "type": "fill-extrusion", "minzoom": 15, "paint": {"fill-extrusion-color": ["interpolate", ["linear"], ["get", "render_height"], 0, "lightgray", 200, "royalblue", 400, "lightblue"], "fill-extrusion-height": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, ["get", "render_height"]], "fill-extrusion-base": ["case", [">=", ["get", "zoom"], 16], ["get", "render_min_height"], 0]}, "source": "openmaptiles", "source-layer": "building"}, null]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200", "buildings"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; + var data = {"mapOptions": {"bearing": 30, "center": [144.716726, 13.37093], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 10.5, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-cf6237923f566960b4182d55f3ff91f0/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addSource", ["openmaptiles", {"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "type": "vector"}]], ["addLayer", [{"id": "buildings", "type": "fill-extrusion", "minzoom": 15, "paint": {"fill-extrusion-color": ["interpolate", ["linear"], ["get", "render_height"], 0, "lightgray", 200, "royalblue", 400, "lightblue"], "fill-extrusion-height": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, ["get", "render_height"]], "fill-extrusion-base": ["case", [">=", ["get", "zoom"], 16], ["get", "render_min_height"], 0]}, "source": "openmaptiles", "source-layer": "building"}, null]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200", "buildings"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; pymaplibregl(data); })(); diff --git a/demos/nyc.html b/demos/nyc.html index a4e36a9..99d9588 100644 --- a/demos/nyc.html +++ b/demos/nyc.html @@ -26,7 +26,7 @@ // ... (() => { - var data = {"mapOptions": {"bearing": 30, "center": [-74.012998, 40.70414], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 15.6, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-e2c078d9845a2b68cd6e4a3b206bfd05/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addSource", ["openmaptiles", {"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "type": "vector"}]], ["addLayer", [{"id": "buildings", "type": "fill-extrusion", "minzoom": 15, "paint": {"fill-extrusion-color": ["interpolate", ["linear"], ["get", "render_height"], 0, "lightgray", 200, "royalblue", 400, "lightblue"], "fill-extrusion-height": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, ["get", "render_height"]], "fill-extrusion-base": ["case", [">=", ["get", "zoom"], 16], ["get", "render_min_height"], 0]}, "source": "openmaptiles", "source-layer": "building"}, null]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200", "buildings"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; + var data = {"mapOptions": {"bearing": 30, "center": [-74.012998, 40.70414], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 15.6, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-cf6237923f566960b4182d55f3ff91f0/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addSource", ["openmaptiles", {"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "type": "vector"}]], ["addLayer", [{"id": "buildings", "type": "fill-extrusion", "minzoom": 15, "paint": {"fill-extrusion-color": ["interpolate", ["linear"], ["get", "render_height"], 0, "lightgray", 200, "royalblue", 400, "lightblue"], "fill-extrusion-height": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, ["get", "render_height"]], "fill-extrusion-base": ["case", [">=", ["get", "zoom"], 16], ["get", "render_min_height"], 0]}, "source": "openmaptiles", "source-layer": "building"}, null]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200", "buildings"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; pymaplibregl(data); })(); diff --git a/maplibre/google_earth_engine.html b/maplibre/google_earth_engine.html index e3edee1..773f970 100644 --- a/maplibre/google_earth_engine.html +++ b/maplibre/google_earth_engine.html @@ -26,7 +26,7 @@ // ... (() => { - var data = {"mapOptions": {"bearing": 30, "center": [-120.4482, 38.0399], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 13, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-e2c078d9845a2b68cd6e4a3b206bfd05/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; + var data = {"mapOptions": {"bearing": 30, "center": [-120.4482, 38.0399], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 13, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-cf6237923f566960b4182d55f3ff91f0/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]]]}; pymaplibregl(data); })(); diff --git a/maplibre/google_earth_engine_1.html b/maplibre/google_earth_engine_1.html index 0f2a09b..ef7c983 100644 --- a/maplibre/google_earth_engine_1.html +++ b/maplibre/google_earth_engine_1.html @@ -26,7 +26,7 @@ // ... (() => { - var data = {"mapOptions": {"bearing": 30, "center": [-74.012998, 40.70414], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 15.6, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-e2c078d9845a2b68cd6e4a3b206bfd05/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]], ["addSource", ["openmaptiles", {"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "type": "vector"}]], ["addLayer", [{"id": "3d-buildings", "type": "fill-extrusion", "minzoom": 15, "paint": {"fill-extrusion-color": ["interpolate", ["linear"], ["get", "render_height"], 0, "lightgray", 200, "royalblue", 400, "lightblue"], "fill-extrusion-height": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, ["get", "render_height"]], "fill-extrusion-base": ["case", [">=", ["get", "zoom"], 16], ["get", "render_min_height"], 0]}, "source": "openmaptiles", "source-layer": "building"}, null]]]}; + var data = {"mapOptions": {"bearing": 30, "center": [-74.012998, 40.70414], "pitch": 60, "style": {"version": 8, "sources": {"terrainSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "hillshadeSource": {"type": "raster-dem", "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "tileSize": 512}, "satellite": {"type": "raster", "tiles": ["https://api.maptiler.com/maps/satellite/{z}/{x}/{y}.jpg?key=zHkOvEKXRU94s1PSxs7w"], "tileSize": 512, "attribution": "© MapTiler", "maxzoom": 24}}, "layers": [{"id": "satellite", "type": "raster", "source": "satellite"}, {"id": "hillshade", "type": "hillshade", "source": "hillshadeSource", "layout": {"visibility": "visible"}, "paint": {"hillshade-shadow-color": "#473B24"}}], "terrain": {"source": "terrainSource", "exaggeration": 1}}, "zoom": 15.6, "height": "600px"}, "calls": [["addControl", ["NavigationControl", {"showCompass": true, "showZoom": true, "visualizePitch": false}, "top-right"]], ["addControl", ["FullscreenControl", {}, "top-right"]], ["addControl", ["ScaleControl", {"unit": "metric"}, "bottom-left"]], ["addLayer", [{"id": "ESA/WorldCover/v200", "type": "raster", "source": {"attribution": "Google Earth Engine", "tileSize": 256, "tiles": ["https://earthengine.googleapis.com/v1/projects/earthengine-legacy/maps/45126b69c28e502ee06aef6ec5300b59-cf6237923f566960b4182d55f3ff91f0/tiles/{z}/{x}/{y}"], "type": "raster"}}, null]], ["setLayoutProperty", ["ESA/WorldCover/v200", "visibility", "visible"]], ["setPaintProperty", ["ESA/WorldCover/v200", "raster-opacity", 0.5]], ["addControl", ["InfoBoxControl", {"content": "\n\n
\n
ESA Landcover
\n
\n
    \n
  • 10 Trees
  • \n
  • 20 Shrubland
  • \n
  • 30 Grassland
  • \n
  • 40 Cropland
  • \n
  • 50 Built-up
  • \n
  • 60 Barren / sparse vegetation
  • \n
  • 70 Snow and ice
  • \n
  • 80 Open water
  • \n
  • 90 Herbaceous wetland
  • \n
  • 95 Mangroves
  • \n
  • 100 Moss and lichen
  • \n
\n
\n
\n\n \n\n\n", "cssText": "font-size: 15px; color: black;\n font-weight: normal; padding: 5px;\n background-color: white; border-radius: 5px;"}, "bottom-right"]], ["addControl", ["LayerSwitcherControl", {"layerIds": ["ESA/WorldCover/v200"], "theme": "default", "cssText": "padding: 5px; border: 1px solid darkgrey; border-radius: 4px;"}, "top-left"]], ["addSource", ["openmaptiles", {"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=zHkOvEKXRU94s1PSxs7w", "type": "vector"}]], ["addLayer", [{"id": "3d-buildings", "type": "fill-extrusion", "minzoom": 15, "paint": {"fill-extrusion-color": ["interpolate", ["linear"], ["get", "render_height"], 0, "lightgray", 200, "royalblue", 400, "lightblue"], "fill-extrusion-height": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, ["get", "render_height"]], "fill-extrusion-base": ["case", [">=", ["get", "zoom"], 16], ["get", "render_min_height"], 0]}, "source": "openmaptiles", "source-layer": "building"}, null]]]}; pymaplibregl(data); })();