Skip to content

Commit

Permalink
docs: Update notebooks 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvdmeer committed Jan 16, 2024
1 parent 51e8362 commit 6e3eb51
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 417 deletions.
16 changes: 8 additions & 8 deletions demo/datacube.ipynb

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions demo/gallery.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@
" <meta name="viewport" content="width=device-width,\n",
" initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n",
" <style>\n",
" #map_bd1b267a704991f4ea5ca47212c23308 {\n",
" #map_4efcd1f48557bf06f7d61b4ef606dca0 {\n",
" position: relative;\n",
" width: 100.0%;\n",
" height: 100.0%;\n",
Expand Down Expand Up @@ -588,14 +588,14 @@
"<body>\n",
" \n",
" \n",
" <div class="folium-map" id="map_bd1b267a704991f4ea5ca47212c23308" ></div>\n",
" <div class="folium-map" id="map_4efcd1f48557bf06f7d61b4ef606dca0" ></div>\n",
" \n",
"</body>\n",
"<script>\n",
" \n",
" \n",
" var map_bd1b267a704991f4ea5ca47212c23308 = L.map(\n",
" "map_bd1b267a704991f4ea5ca47212c23308",\n",
" var map_4efcd1f48557bf06f7d61b4ef606dca0 = L.map(\n",
" "map_4efcd1f48557bf06f7d61b4ef606dca0",\n",
" {\n",
" center: [47.32110812526405, 12.808509961311596],\n",
" crs: L.CRS.EPSG3857,\n",
Expand All @@ -604,77 +604,77 @@
" preferCanvas: false,\n",
" }\n",
" );\n",
" L.control.scale().addTo(map_bd1b267a704991f4ea5ca47212c23308);\n",
" L.control.scale().addTo(map_4efcd1f48557bf06f7d61b4ef606dca0);\n",
"\n",
" \n",
"\n",
" \n",
" \n",
" var tile_layer_2a444d041205613cd28eb73e51ad0a3d = L.tileLayer(\n",
" var tile_layer_5edb3da093f4664fdb5bcb2650bd0e9b = L.tileLayer(\n",
" "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",\n",
" {"attribution": "Data by \\u0026copy; \\u003ca target=\\"_blank\\" href=\\"http://openstreetmap.org\\"\\u003eOpenStreetMap\\u003c/a\\u003e, under \\u003ca target=\\"_blank\\" href=\\"http://www.openstreetmap.org/copyright\\"\\u003eODbL\\u003c/a\\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n",
" ).addTo(map_bd1b267a704991f4ea5ca47212c23308);\n",
" ).addTo(map_4efcd1f48557bf06f7d61b4ef606dca0);\n",
" \n",
" \n",
" map_bd1b267a704991f4ea5ca47212c23308.fitBounds(\n",
" map_4efcd1f48557bf06f7d61b4ef606dca0.fitBounds(\n",
" [[47.30444420302901, 12.799052458545688], [47.33777204749909, 12.817967464077503]],\n",
" {}\n",
" );\n",
" \n",
" \n",
" function geo_json_e30bce70e58f00ad1f3365ab9ca796a6_styler(feature) {\n",
" function geo_json_f2efe087d1728c7a219440b096478d0d_styler(feature) {\n",
" switch(feature.id) {\n",
" default:\n",
" return {"fillOpacity": 0.5, "weight": 2};\n",
" }\n",
" }\n",
" function geo_json_e30bce70e58f00ad1f3365ab9ca796a6_highlighter(feature) {\n",
" function geo_json_f2efe087d1728c7a219440b096478d0d_highlighter(feature) {\n",
" switch(feature.id) {\n",
" default:\n",
" return {"fillOpacity": 0.75};\n",
" }\n",
" }\n",
" function geo_json_e30bce70e58f00ad1f3365ab9ca796a6_pointToLayer(feature, latlng) {\n",
" function geo_json_f2efe087d1728c7a219440b096478d0d_pointToLayer(feature, latlng) {\n",
" var opts = {"bubblingMouseEvents": true, "color": "#3388ff", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "#3388ff", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 2, "stroke": true, "weight": 3};\n",
" \n",
" let style = geo_json_e30bce70e58f00ad1f3365ab9ca796a6_styler(feature)\n",
" let style = geo_json_f2efe087d1728c7a219440b096478d0d_styler(feature)\n",
" Object.assign(opts, style)\n",
" \n",
" return new L.CircleMarker(latlng, opts)\n",
" }\n",
"\n",
" function geo_json_e30bce70e58f00ad1f3365ab9ca796a6_onEachFeature(feature, layer) {\n",
" function geo_json_f2efe087d1728c7a219440b096478d0d_onEachFeature(feature, layer) {\n",
" layer.on({\n",
" mouseout: function(e) {\n",
" if(typeof e.target.setStyle === "function"){\n",
" geo_json_e30bce70e58f00ad1f3365ab9ca796a6.resetStyle(e.target);\n",
" geo_json_f2efe087d1728c7a219440b096478d0d.resetStyle(e.target);\n",
" }\n",
" },\n",
" mouseover: function(e) {\n",
" if(typeof e.target.setStyle === "function"){\n",
" const highlightStyle = geo_json_e30bce70e58f00ad1f3365ab9ca796a6_highlighter(e.target.feature)\n",
" const highlightStyle = geo_json_f2efe087d1728c7a219440b096478d0d_highlighter(e.target.feature)\n",
" e.target.setStyle(highlightStyle);\n",
" }\n",
" },\n",
" });\n",
" };\n",
" var geo_json_e30bce70e58f00ad1f3365ab9ca796a6 = L.geoJson(null, {\n",
" onEachFeature: geo_json_e30bce70e58f00ad1f3365ab9ca796a6_onEachFeature,\n",
" var geo_json_f2efe087d1728c7a219440b096478d0d = L.geoJson(null, {\n",
" onEachFeature: geo_json_f2efe087d1728c7a219440b096478d0d_onEachFeature,\n",
" \n",
" style: geo_json_e30bce70e58f00ad1f3365ab9ca796a6_styler,\n",
" pointToLayer: geo_json_e30bce70e58f00ad1f3365ab9ca796a6_pointToLayer\n",
" style: geo_json_f2efe087d1728c7a219440b096478d0d_styler,\n",
" pointToLayer: geo_json_f2efe087d1728c7a219440b096478d0d_pointToLayer\n",
" });\n",
"\n",
" function geo_json_e30bce70e58f00ad1f3365ab9ca796a6_add (data) {\n",
" geo_json_e30bce70e58f00ad1f3365ab9ca796a6\n",
" function geo_json_f2efe087d1728c7a219440b096478d0d_add (data) {\n",
" geo_json_f2efe087d1728c7a219440b096478d0d\n",
" .addData(data)\n",
" .addTo(map_bd1b267a704991f4ea5ca47212c23308);\n",
" .addTo(map_4efcd1f48557bf06f7d61b4ef606dca0);\n",
" }\n",
" geo_json_e30bce70e58f00ad1f3365ab9ca796a6_add({"bbox": [12.799052458545688, 47.30444420302901, 12.817967464077503, 47.33777204749909], "features": [{"bbox": [12.803868147852612, 47.33056389640604, 12.817967464077503, 47.33777204749909], "geometry": {"coordinates": [[[12.803868147852612, 47.33091868331674], [12.817596157332153, 47.33056389640604], [12.817967464077503, 47.33741720662344], [12.804237649967712, 47.33777204749909], [12.803868147852612, 47.33091868331674]]], "type": "Polygon"}, "id": "0", "properties": {"name": "Northern"}, "type": "Feature"}, {"bbox": [12.799052458545688, 47.30444420302901, 12.815746431172713, 47.31514111553671], "geometry": {"coordinates": [[[12.799052458545688, 47.30486091070503], [12.815190335969971, 47.30444420302901], [12.815746431172713, 47.3147243128484], [12.799605373818284, 47.31514111553671], [12.799052458545688, 47.30486091070503]]], "type": "Polygon"}, "id": "1", "properties": {"name": "Southern"}, "type": "Feature"}], "type": "FeatureCollection"});\n",
" geo_json_f2efe087d1728c7a219440b096478d0d_add({"bbox": [12.799052458545688, 47.30444420302901, 12.817967464077503, 47.33777204749909], "features": [{"bbox": [12.803868147852612, 47.33056389640604, 12.817967464077503, 47.33777204749909], "geometry": {"coordinates": [[[12.803868147852612, 47.33091868331674], [12.817596157332153, 47.33056389640604], [12.817967464077503, 47.33741720662344], [12.804237649967712, 47.33777204749909], [12.803868147852612, 47.33091868331674]]], "type": "Polygon"}, "id": "0", "properties": {"name": "Northern"}, "type": "Feature"}, {"bbox": [12.799052458545688, 47.30444420302901, 12.815746431172713, 47.31514111553671], "geometry": {"coordinates": [[[12.799052458545688, 47.30486091070503], [12.815190335969971, 47.30444420302901], [12.815746431172713, 47.3147243128484], [12.799605373818284, 47.31514111553671], [12.799052458545688, 47.30486091070503]]], "type": "Polygon"}, "id": "1", "properties": {"name": "Southern"}, "type": "Feature"}], "type": "FeatureCollection"});\n",
"\n",
" \n",
" \n",
" geo_json_e30bce70e58f00ad1f3365ab9ca796a6.bindTooltip(\n",
" geo_json_f2efe087d1728c7a219440b096478d0d.bindTooltip(\n",
" function(layer){\n",
" let div = L.DomUtil.create('div');\n",
" \n",
Expand All @@ -701,7 +701,7 @@
"&lt;/html&gt;\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>"
],
"text/plain": [
"<folium.folium.Map at 0x7f63a7c18510>"
"<folium.folium.Map at 0x7f532a90ac90>"
]
},
"execution_count": 16,
Expand Down
Loading

0 comments on commit 6e3eb51

Please sign in to comment.