In-browser geospatial data in Python
Building a web application using Pyscript and Folium
Gewerbesteuerhebesätze 2022 in Deutschland
# import the library
import folium
from folium import plugins
import numpy as np
import pandas as pd
from pyodide.http import open_url
from pyscript import display
data = [
[52.5766,13.5797,300],
[52.5373,14.5123,320],
[51.9168,14.0149,330],
[51.65,14.0333,324],
[52.9623,13.8072,315],
[52.565,13.7281,320],
[52.1833,13.43,350],
[53.015,13.9992,400],
[52.1333,12.6,320],
[52.7873,14.0304,340],
[51.5183,13.3946,330],
[52.2833,14.0667,300],
[52.9561,11.949,350],
[52.05,13.5,340],
[52.2381,12.9714,306],
[52.1729,14.246,310],
[52.4833,12.5611,320],
[52.4917,12.6125,320],
[52.6967,13.8014,310],
[52.4167,12.3333,320],
[52.6201,12.7951,330],
[52.35,14.15,300],
[52.6821,13.5965,350],
[51.9425,13.776,300],
[52.2398,13.6373,375],
[52.7662,13.6442,300],
[52.6833,13.2833,350],
[52.3372,13.4121,350],
[52.6017,14.5646,320],
[52.693,14.1595,310],
[53.260888888889,13.607590,325],
[52.2167,12.85,340],
[52.25,12.8333,340],
[52.4189,12.5228,450],
[52.8856,12.2237,324],
[53,11.8,305],
[52.7694,13.8153,320],
[52.5833,13,320],
[51.8155,14.2442,320],
[52.325,14.3,300],
[52.2539,14.5728,300],
[52.8873,13.8112,321],
[51.6667,13.9167,320],
[52.1977,12.7687,323],
[53.3997,14.1253,370],
[52.2333,12.3222,320],
[52.5661,14.0743,390],
[51.8333,14.15,320],
[51.8793,14.1745,300],
[51.744,13.9533,350],
[53.3667,14.068,350],
[53.2112,14.2082,324],
[52.902,13.8715,324],
[51.7612,14.3544,400],
[51.7333,13.7667,340],
[53.0333,11.6667,324],
[52.9031,12.7247,310],
[51.8941,13.4342,320],
[51.9067,13.5,300],
[52.5427,13.0584,350],
[52.2333,14.05,320],
[51.825,14.2833,320],
[51.6258,13.5623,320],
[51.6159,14.5981,350],
[51.8903,14.3164,320],
[51.9167,13.5833,320],
[51.6541,14.2232,350],
[52.803,12.4596,325],
[51.8667,14.3667,316],
[52.8333,13.8333,395],
[52.3667,13.6167,350],
[52.1601,14.555,395],
[51.4604,13.52,330],
[52.42,13.7544,300],
[52.8051,13.958,300],
[51.5875,13.2364,323],
[52.4333,14.3167,350],
[52.5601,13.0927,350],
[52.8135,12.7644,315],
[51.6083,14.5208,350],
[52.4556,14.4469,315],
[51.697732,13.471073,316],
[51.6339,13.7066,320],
[53.1417,13.8333,319],
[51.7302,14.598,350],
[52.3475,14.5539,400],
[51.4148,13.7696,400],
[52.5,13.7333,300],
[52.0943,14.3104,324],
[53.0292,13.7068,315],
[52.7376,12.5797,320],
[53.1864,13.1708,320],
[52.3833,14.0583,380],
[53.2,14.3833,360],
[52.5382,13.9667,300],
[53.2446,12.1981,315],
[53.1699,13.7485,320],
[52.6351,13.3075,300],
[52.745,12.4,315],
[51.972,13.6011,320],
[52.2762,12.6005,320],
[52.574,14.493,308],
[51.5332,13.6269,324],
[53.4063,13.9156,350],
[52.1718,12.3751,320],
[52.3667,13.75,325],
[52.2333,12.4333,315],
[53.2125,14.0075,310],
[53.007,13.1575,300],
[51.4,13.5667,350],
[52.1659,13.6594,320],
[52.4028,12.7794,315],
[52.2333,14.5333,300],
[53.1195,12.0497,323],
[51.7,14.625,350],
[52.3586,13.3099,315],
[52.7906,12.3682,315],
[51.379,13.725,300],
[51.5876,14.0109,350],
[51.3833,13.6667,350],
[53.0667,13.1,330],
[51.4,14,400],
[52.4111,13.8889,320],
[53.3167,13.95,325],
[52.15,14.4083,308],
[51.9499,14.7145,330],
[51.812,14.2294,330],
[53.1889,11.9278,310],
[52.9833,12.25,300],
[52.5777,14.34,340],
[51.4167,13.9333,400],
[52.1167,13.7,310],
[53.2333,12.28,300],
[52.7167,12.2567,315],
[52.4929,12.4667,320],
[52.735,13.8577,313],
[51.8127,13.6551,320],
[51.603797,13.670059,310],
[52.293584,13.790831,323],
[53.1446,12.3625,324],
[51.8199,14.5074,360],
[52.636,13.2042,380],
[51.4055,13.8937,400],
[51.6833,13.2333,300],
[52.9027,12.9698,333],
[51.3833,13.6167,350],
[52.6763,13.2778,325],
[51.431,14.0098,400],
[51.7667,13.4667,310],
[52.8134,13.9249,315],
[52.7534,13.8823,325],
[51.5,13.55,324],
[53.205,14.2807,330],
[52.504358,13.650114,300],
[52.619,14.0708,315],
[52.3333,14.35,315],
[51.9913,14.361,300],
[51.5667,14.6417,350],
[51.8607,14.4981,350],
[52.9794,13.7449,325],
[51.9961,13.0798,330],
[53.1622,11.7424,320],
[51.9333,13.7,320],
[52.4781,12.8453,335],
[52.4079,13.2251,320],
[52.7167,12.5,320],
[52.3271,12.6625,309],
[51.75,14.25,350],
[52.3014,13.633,350],
[52.6333,12.5167,325],
[52.0462,13.8489,330],
[51.725756,13.315825,300],
[52.7622,13.0252,315],
[51.3833,13.8,300],
[53.2417,12.1583,350],
[52.5624,14.5728,320],
[52.9808,12.3274,323],
[52.3333,14.1,300],
[53.0744,11.5991,300],
[51.4881,13.7662,400],
[52.107,14.6415,330],
[52.4272,14.5323,360],
[51.7957,13.4207,310],
[52.7234,13.193,350],
[52.9111,11.9778,305],
[53.0833,11.4833,324],
[53.066744,11.359147,300],
[52.6438,14.3601,320],
[51.5976,13.7781,319],
[52.8713,13.3947,250],
[51.9849,14.2999,360],
[52.8621,13.9695,324],
[52.4699,14.3401,315],
[51.4,13.7333,300],
[52.4899,14.4285,320],
[52.9748,12.9869,350],
[52.1975,12.7851,310],
[52.8958,13.1729,320],
[51.9455,13.8852,330],
[51.8626,13.9613,375],
[51.6833,14,324],
[51.8297,13.6741,350],
[52.0903,13.1677,360],
[52.3032,13.254,380],
[52.9333,14.1083,323],
[53.2124,13.3148,324],
[53.32,12.1233,320],
[52.8421,13.5993,250],
[52.1096,13.7654,320],
[52.9292,12.7083,310],
[52.5875,12.6167,325],
[52.038253,14.037763,300],
[52.6199,14.1292,328],
[51.6428,13.733,310],
[52.7761,13.7065,320],
[51.4,13.5333,350],
[53.2472,14.43,324],
[53.3133,12.2425,320],
[52.3135,13.03,326],
[53.1119,13.6415,320],
[52.5195,12.3115,300],
[52.3024,13.5355,330],
[53.1833,13.6667,325],
[52.2,14.4,300],
[51.4333,13.2167,310],
[52.6647,13.3769,325],
[52.6667,12.6111,320],
[52.1194,12.7917,330],
[52.2474,14.4179,350],
[52.5,14.1333,330],
[52.5562,14.1376,300],
[52.607,12.8737,320],
[51.6433,14.63,350],
[52.05,14.7333,330],
[52.6,12.5,330],
[51.9276,14.0881,300],
[52.5333,13.6833,300],
[52.596,14.2377,320],
[51.6788,14.4163,350],
[52.7243,14.2792,320],
[51.608,14.1651,350],
[52.9282,12.8031,370],
[51.6214,14.1309,320],
[52.8528,12.4492,324],
[52.6648,14.228,316],
[52.0639,14.6028,330],
[51.9025,13.2092,325],
[52.8337,13.9284,300],
[51.9794,12.9854,320],
[52.0531,12.6185,320],
[53.2697,13.6046,310],
[52.3472,13.1053,320],
[52.1116,13.2152,330],
[52.5938,14.0355,320],
[52.5833,13.3167,321],
[53.2125,13.8875,320],
[52.7773,14.2042,320],
[52.8657,14.0451,323],
[52.7558,13.242,370],
[51.375,13.7598,400],
[52.654626,13.543257,300],
[52.9333,14.05,323],
[52.677,12.7107,321],
[52.5167,12.7167,320],
[51.8584,14.4114,350],
[53.0758,11.8574,323],
[52.6424,12.6668,321],
[52.525,13.8,310],
[53.062,14.0856,320],
[53.2167,11.9,320],
[52.2542,12.6875,315],
[52.1167,12.6767,340],
[52.957032,12.02873,310],
[51.4667,13.6167,324],
[52.4717,14.5347,360],
[52.4,13.0667,455],
[52.5318,12.3485,310],
[53.3162,13.8626,375],
[53.1494,12.1741,323],
[52.6372,13.9878,350],
[53.249,12.0418,335],
[52.0333,12.6313,300],
[52.2,14.325,300],
[53.3056,14.0556,330],
[52.2913,13.4195,380],
[52.6066,12.337,350],
[52.3323,14.028,325],
[52.5342,13.9088,310],
[52.6562,14.0937,300],
[52.2667,14,320],
[52.5009,14.5817,300],
[52.6248,12.6855,324],
[53.0997,12.8989,319],
[52.7509,12.3419,315],
[52.2321,14.1619,350],
[52.016667,13.666667,300],
[51.429725,13.493509,350],
[52.3292,12.3583,320],
[52.4724,12.7189,320],
[51.5695,13.5723,310],
[52.4707,13.7736,300],
[52.7214,13.625,300],
[51.4576,13.8664,360],
[52.9167,11.8667,323],
[52.8812,12.9965,306],
[51.5887,13.8486,305],
[53.3667,13.95,300],
[51.957956,14.635866,320],
[51.6,13.3833,321],
[51.5456,13.9121,300],
[52.1289,14.5111,310],
[52.0333,13.9,325],
[51.7238,13.383,324],
[51.85,14.2333,360],
[51.6002,13.4897,310],
[52.389,13.5037,240],
[52.4598,13.7054,340],
[53.007,13.1202,300],
[51.679,13.6025,312],
[53.4136,13.9857,400],
[51.9853,13.723,320],
[52.6192,13.1265,320],
[52.8501,13.6828,350],
[51.4253,13.6949,315],
[52.3582,13.5984,340],
[51.45,13.9333,400],
[51.4767,13.8556,319],
[53.066,14.2711,350],
[52.15,13.6333,250],
[52.0196,14.1749,310],
[52.3389,12.9722,325],
[52.2722,13.0167,350],
[52.6722,12.3778,315],
[52.5339,14.3813,360],
[51.5252,14.0016,370],
[52.1944,14.5333,300],
[52.825,12.4083,324],
[53.0192,13.0884,300],
[51.6922,13.6473,324],
[52.3432,13.8766,325],
[51.930504,14.168133,305],
[51.5696,14.3739,360],
[52.3833,13.2167,340],
[53.1056,13.0417,330],
[52.6478,12.45,320],
[52.4,14.1667,300],
[51.9495,13.4934,320],
[53.0067,12.7333,310],
[52.2238,13.8964,350],
[51.9136,14.1228,316],
[52.5786,13.8874,350],
[52.8917,12.3,310],
[52.7274,13.723,350],
[53.2716,14.351,323],
[52.1292,14.1306,320],
[51.9,14.45,300],
[51.8056,14.4444,400],
[52.4031,13.2601,320],
[53.08,13.7417,320],
[53.0056,12.6444,320],
[52.8567,12.6367,310],
[53.1262,13.5455,330],
[51.4333,13.7333,400],
[52.1297,13.6196,300],
[52.2168,13.225,320],
[52.4,14.4,285],
[52.0975,12.8726,350],
[53.2167,12.1,320],
[51.6,13.4333,310],
[51.5833,14.6167,350],
[51.875,14.4083,324],
[53.2583,13.9667,305],
[53.4569,13.7806,315],
[51.5167,13.3333,318],
[52.091,13.8902,330],
[52.6915,13.1753,345],
[51.7864,14.0794,380],
[52.9338,13.0161,300],
[52.515,14.3141,316],
[52.1824,14.6637,300],
[52.5422,14.0702,400],
[52.9383,12.6645,310],
[52.742,13.458,320],
[53.0252,11.7871,320],
[51.5838,14.1708,380],
[52.2161,14.0084,305],
[52.3,12.45,321],
[51.8167,14.1833,320],
[52.3687,12.9188,360],
[52.6328,13.7344,330],
[52.2307,14.5911,350],
[52.1146,12.4553,320],
[51.6967,14.5533,350],
[52.3167,13.6333,350],
[53.0054,11.7503,323],
[53.1549,12.487,323],
[52.2833,12.4667,350],
[52.446,13.756,300],
[52.7209,14.1343,320],
[52.8833,12.4667,323],
[52.55,12.95,350],
[52.3667,12.3849,320],
[52.6084,14.4525,320],
[52.9785,13.3317,300],
[52.875,12.3417,323],
[52.4213,14.3875,315],
[52.348,13.6217,350],
[53.1893,14.0385,325],
[52.2405,12.3471,320],
[52.9667,13.9167,321],
[52.2061,14.6241,320],
[52.216,13.4491,270],
]
m = folium.Map([52.4, 13.2], zoom_start=8)
plugins.HeatMap(data).add_to(m)
draw = plugins.Draw(export=True)
draw.add_to(m)
# Karte anzeigen
folium.LayerControl().add_to(m)
display(m, target="folium")