{"action":"opened","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3172","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3172/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3172/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3172/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3172","id":55435725,"number":3172,"title":"Disable zoom control buttons?","user":{"login":"amnesia7","id":1161448,"avatar_url":"https://avatars.githubusercontent.com/u/1161448?v=3","gravatar_id":"","url":"https://api.github.com/users/amnesia7","html_url":"https://github.com/amnesia7","followers_url":"https://api.github.com/users/amnesia7/followers","following_url":"https://api.github.com/users/amnesia7/following{/other_user}","gists_url":"https://api.github.com/users/amnesia7/gists{/gist_id}","starred_url":"https://api.github.com/users/amnesia7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amnesia7/subscriptions","organizations_url":"https://api.github.com/users/amnesia7/orgs","repos_url":"https://api.github.com/users/amnesia7/repos","events_url":"https://api.github.com/users/amnesia7/events{/privacy}","received_events_url":"https://api.github.com/users/amnesia7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-25T23:45:30Z","updated_at":"2015-01-25T23:45:30Z","closed_at":null,"body":"Is it possible to disable the zoom control buttons?\r\n\r\nOn `zoomend` I perform a request to the backend for data. \r\n\r\nI can disable `touchZoom`, `scrollWheelZoom`, `doubleClickZoom` and `boxZoom` on the map but I can't see any way to disable the zoom control buttons (`[+]` and `[-]`) because the user is still currently able to click these to change the zoom whilst data for the previous zoom level is still being requested from the database.\r\n\r\nI want to prevent further zoom changes to the map whilst the data is being requested.\r\n\r\nIs there a way to disable the zoom control buttons without just making them `visibility: hidden`, then `visibility: visible` again when the data has been returned from the database?\r\n\r\nI have the same callback function for `dragend` but just disabling `dragging` on the map seems to be working fine for this.\r\n\r\nThanks"}}