Skip to content

Hide leaflet attribution #14

@kerim371

Description

@kerim371

Hi,

I'm trying to hide leaflet attribution using the provided example.
According to the stackoverflow Q&A I need to set attributionControl to false but that doesn't work:

    with layout.content:
        with vuetify.VContainer(
            fluid=True,
            classes="pa-0 fill-height",
        ):
            with leaflet.LMap(zoom=("zoom", 15), center=("center", [51.505, -0.159]), attributionControl=("attributionControl", "false")):
                leaflet.LTileLayer(
                    url=("url", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"),
                    attribution=(
                        "attribution",
                        '&copy; <a target="_blank" href="http://osm.org/copyright">OpenStreetMap</a> contributors',
                    ),
                )
                leaflet.VGeosearch(options=("options",{"provider": "OpenStreetMapProvider"}))
                leaflet.LMarker(lat_lng=("markerLatLng", [51.504, -0.159]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions