<jupyter_start><jupyter_text>Warning: Before running below cells please make sure you have API key.                 Please see README.md for more info on API key.<jupyter_code>import os

os.environ["LS_API_KEY"] = "MY-API-KEY"  # replace your API key here.
# Marker Cluster Example

import os
from here_map_widget import Map, MarkerCluster, ZoomControl, ObjectLayer


m = Map(api_key=os.environ["LS_API_KEY"], center=[51.01, 0.01], zoom=7)

data = """
<!DOCTYPE html>
<html>
<body>
<h1>Marker</h1>
<p>{}</p>
</body>
</html>
"""
p1 = dict(lat=51.01, lng=0.01, data=data.format("First Marker"))
p2 = dict(lat=50.04, lng=1.01, data=data.format("Second Marker"))
p3 = dict(lat=51.45, lng=1.01, data=data.format("Third Marker"))
p4 = dict(lat=51.01, lng=2.01, data=data.format("Fourth Marker"))

provider = MarkerCluster(data_points=[p1, p2, p3, p4], show_bubble=True)
layer = ObjectLayer(provider=provider)
m.add_layer(layer)
zc = ZoomControl(alignment="LEFT_TOP")
m.add_control(zc)
m<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup