Open kerim371 opened 2 days ago
Did you try to set the attribution=
to an empty string?
@jourdain yes I've tried, neither of these two worked:
with leaflet.LMap(zoom=("zoom", 15), center=("center", [51.505, -0.159]), attribution=''):
# or
with leaflet.LMap(zoom=("zoom", 15), center=("center", [51.505, -0.159]), attribution=("attribution", "")):
Did you try passing the options like suggested in the link you provided?
Also don't forget that you can reach out for professional support.
@jourdain yes I've tried using options in the following way and it didn't work:
with leaflet.LMap(zoom=("zoom", 15), center=("center", [51.505, -0.159]), options=("options", "{attributionControl: false}")):
Also don't forget that you can reach out for professional support.
I remember that, thank you. That is something I keep in mind.
The second argument needs to be a dictionary not a string.
with leaflet.LMap(
zoom=("zoom", 15),
center=("center", [51.505, -0.159]),
options=("options", {"attributionControl": False}),
):
This didn't worked neither.
It seems that almost any of the Leaflet options doesnt work.
For example doubleClickZoom
:
with leaflet.LMap(
zoom=("zoom", 15),
center=("center", [51.505, -0.159]),
doubleClickZoom=("doubleClickZoom", False),
):
still allows to zoom with double click.
Even though zoom
and center
options are working.
I don't see doubleClickZoom
in the available properties so it make sense that nothing new would happen with that extra kwarg.
If you want to create your own bundle of a vue3/leaflet version, keep in mind that you can use the widget generator
I see.. Very interesting, thank you! I will take a try
Hi,
I'm trying to hide leaflet attribution using the provided example. According to the stackoverflow Q&A I need to set
attributionControl
tofalse
but that doesn't work: