How to apply mapbox.layer.maxzoom

Hi All,

I am trying to figure out how to apply a max zoom to my output map - I have found the relevant line item in the documentation but I canโ€™t figure out how to get it working in my code - see below - can anyone help? (Layout.mapbox in Python)

    output_map.update_layout(
        mapbox={
            "layers": ["maxzoom", 1], ??????
            'accesstoken': token,
            'style': "satellite-streets", 'zoom': 1.7},
        margin={"r": 0, "t": 0, "l": 0, "b": 0})

layers
Code: fig.update_mapboxes(layers=list(...))
Type: list of dict where each dict has one or more of the keys listed below.

  • maxzoom
    Parent: layout.mapbox.layers[]
    Type: number between or equal to 0 and 24
    Default: 24 Sets the maximum zoom level (mapbox.layer.maxzoom). At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

THANK YOU IN ADVANCE :slight_smile:

Any updates on this? I have also tried a bunch of things but to no avail.