Closed (fixed)
Project:
Leaflet
Version:
10.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2023 at 11:24 UTC
Updated:
2 Feb 2023 at 23:19 UTC
Jump to comment: Most recent
Some maps are not meant to be zoomed into. It would be great to be able to easily disable the zoom controls, for example by setting the min and max zoom to the same value.
Allow setting minZoom and maxZoom to the same value and set zoomControl to false in that case.
patch
review
merge
profit
none
none
none
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
itamair commentedThanks @bircher ... pretty smart add-on.
Merged after adding some refinement/completion (the initial Zoom will match the Min and Max coincident) and appropriate message to the UI.