diff --git a/app/app.py b/app/app.py new file mode 100644 index 0000000..ff6bfcf --- /dev/null +++ b/app/app.py @@ -0,0 +1,46 @@ +import panel as pn +import hvplot.pandas +import folium +import os +import base64 +from folium import IFrame +import numpy as np + + +pn.extension(sizing_mode="stretch_width") + +m = folium.Map(zoom_start=12, max_bounds=True) + +folium_pane = pn.pane.plot.Folium(m, height=500) + +dir = "./img/" +for fl in os.listdir(dir): + if fl.endswith(".png"): + idx = str(fl.split(".")[0]) + encoded = base64.b64encode(open("./img/{}.png".format(idx), "rb").read()) + html = ''.format + iframe = IFrame(html(encoded.decode("UTF-8")), width=630, height=380) + popup = folium.Popup(iframe, max_width=1000) + + folium.Marker( + location=[50 + np.random.rand(1) * 10, 10 + np.random.rand(1) * 100], + popup=popup, + icon=folium.Icon(), + ).add_to(m) + else: + continue +m.add_child(folium.LatLngPopup()) + + +template = pn.template.BootstrapTemplate( + title="Pastas around the world", + sidebar=[], +) +# Append a layout to the main area, to demonstrate the list-like API +template.main.append(pn.Row(folium_pane)) + +# template.servable() + +from bokeh.resources import INLINE + +template.save("index.html", resources=INLINE) diff --git a/img/head_310177_110.png b/img/head_310177_110.png new file mode 100644 index 0000000..cf2650d Binary files /dev/null and b/img/head_310177_110.png differ diff --git a/img/head_310193_110.png b/img/head_310193_110.png new file mode 100644 index 0000000..4b53c6c Binary files /dev/null and b/img/head_310193_110.png differ diff --git a/img/head_310201_101.png b/img/head_310201_101.png new file mode 100644 index 0000000..5f2b66c Binary files /dev/null and b/img/head_310201_101.png differ diff --git a/img/head_310219_110.png b/img/head_310219_110.png new file mode 100644 index 0000000..db620d0 Binary files /dev/null and b/img/head_310219_110.png differ diff --git a/img/head_310227_110.png b/img/head_310227_110.png new file mode 100644 index 0000000..659e974 Binary files /dev/null and b/img/head_310227_110.png differ diff --git a/img/head_310243_110.png b/img/head_310243_110.png new file mode 100644 index 0000000..360275d Binary files /dev/null and b/img/head_310243_110.png differ diff --git a/img/head_310268_111.png b/img/head_310268_111.png new file mode 100644 index 0000000..b3dc1e0 Binary files /dev/null and b/img/head_310268_111.png differ diff --git a/img/head_310276_110.png b/img/head_310276_110.png new file mode 100644 index 0000000..444dbff Binary files /dev/null and b/img/head_310276_110.png differ diff --git a/img/head_310292_111.png b/img/head_310292_111.png new file mode 100644 index 0000000..78c268a Binary files /dev/null and b/img/head_310292_111.png differ diff --git a/img/head_310326_111.png b/img/head_310326_111.png new file mode 100644 index 0000000..e24cda9 Binary files /dev/null and b/img/head_310326_111.png differ diff --git a/img/head_310334_110.png b/img/head_310334_110.png new file mode 100644 index 0000000..02b0172 Binary files /dev/null and b/img/head_310334_110.png differ diff --git a/img/head_310342_110.png b/img/head_310342_110.png new file mode 100644 index 0000000..aff5bc5 Binary files /dev/null and b/img/head_310342_110.png differ diff --git a/img/head_310433_110.png b/img/head_310433_110.png new file mode 100644 index 0000000..25e5692 Binary files /dev/null and b/img/head_310433_110.png differ diff --git a/img/head_310441_100.png b/img/head_310441_100.png new file mode 100644 index 0000000..03d8438 Binary files /dev/null and b/img/head_310441_100.png differ diff --git a/img/head_310458_100.png b/img/head_310458_100.png new file mode 100644 index 0000000..2aa6b4b Binary files /dev/null and b/img/head_310458_100.png differ diff --git a/img/head_310474_100.png b/img/head_310474_100.png new file mode 100644 index 0000000..8317625 Binary files /dev/null and b/img/head_310474_100.png differ diff --git a/img/head_310482_111.png b/img/head_310482_111.png new file mode 100644 index 0000000..7ce0210 Binary files /dev/null and b/img/head_310482_111.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..17f90f9 --- /dev/null +++ b/index.html @@ -0,0 +1,1351 @@ + + + + + Panel + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+
+ + +
+ +
+
+
+
+ + + + + + \ No newline at end of file