> For AI agents: the complete documentation index is available at /jp/core-sdk/map/web/llms.txt, the full documentation bundle is available at /jp/core-sdk/map/web/llms-full.txt.

# Zoom Map

To disable map zooming by mouse wheel or trackpad when initializing the map:

```js
const maplibreMap = new maplibregl.Map({
    container: 'map',
    zoom: 17,
    scrollZoom: false
});
```

To toggle scroll zooming by button:

```js
const disable = "Map scaling disable";
const enable = "Map scaling enable";

document.querySelector("#button").onclick = function(e) {
    if (e.target.innerText === disable) {
        maplibreMap.scrollZoom.enable();
        e.target.innerText = enable;
        return;
    }

    maplibreMap.scrollZoom.disable();
    e.target.innerText = disable;
};
```

Sample web page:

<iframe src="https://map-service.mapxus.co.jp/bssww/scrollZoomHandler" width="100%" height="550px"></iframe>
