The option should be set in the map initialisation, e.g.:
// Initialize the map on the div with id="map" with a given center,
// zoom level and scrollwheel disabled:
var map = L.map('map', {
center: [51.505, -0.09],
zoom: 13,
scrollWheelZoom: false
});
Hi there, I’m working with P5.JS library; is there anyway to disable all the zoom, rotate and moving controls of a map with that? I cannot find the part of the codes to add them in
Just like with Leaflet disabling control on a map component is something which is done in Javascript. Once you know how to do it you can start using a Grav Twig template to make these setting variable and set them when the page is served.
You’ll have more chance of getting a helpful answer when you post your question in the p5.js Forum but maybe you already have.