deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] ZoomWidget ignores minZoom / maxZoom

Open gerwitz opened this issue 5 months ago • 0 comments

Description

Title says it all. With the properties below, I am able to zoom beyond the specified range using the widget. Other interactions are properly constrained.

Flavors

  • [ ] Script tag
  • [ ] React
  • [ ] Python/Jupyter notebook
  • [ ] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CARTO
  • [ ] ArcGIS

Expected Behavior

No response

Steps to Reproduce

viewState: {
    latitude: bound.latitude,
    longitude: bound.longitude,
    zoom: bound.zoom,
    minZoom: 1,
    maxZoom: 15,
    pitch: 0,
    bearing: 0,
    transitionDuration: 300
},
widgets: [
    new ZoomWidget({
        id: 'zoom-widget',
        placement: 'bottom-right'
    })
]

Environment

  • Framework version: @deck.gl/[email protected]
  • Browser: latest desktop Safari, Chrome
  • OS: macOS 15.5

Logs

No response

gerwitz avatar Jun 22 '25 17:06 gerwitz