I can add controls and layers only with map.add_control() and add_layer() but I would also like to use += on the map as this shortens the code considerably when putting many things onto the map. In Ipyleaflet this is perfectly possible. It would be nice to have it here, too (no pun intended).
import os
from here_map_widget import Map, DefaultLayers, DefaultLayerNames, ZoomControl
api_key = os.getenv("HEREMAPS_API_KEY")
basemap = DefaultLayers(layer_name=DefaultLayerNames.raster.normal.map)
m = Map(center=[52, 13], zoom=6, basemap=basemap, api_key=api_key)
m.add_control(ZoomControl(alignment="LEFT_TOP")) # preferred: m += ZoomControl(...)
I can add controls and layers only with
map.add_control()
andadd_layer()
but I would also like to use+=
on the map as this shortens the code considerably when putting many things onto the map. In Ipyleaflet this is perfectly possible. It would be nice to have it here, too (no pun intended).