Problem/Motivation

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.

Proposed resolution

Allow setting minZoom and maxZoom to the same value and set zoomControl to false in that case.

Remaining tasks

patch
review
merge
profit

User interface changes

none

API changes

none

Data model changes

none

Issue fork leaflet-3334825

Command icon Show commands

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

bircher created an issue. See original summary.

itamair made their first commit to this issue’s fork.

  • itamair committed 41b3bc95 on 10.0.x authored by bircher
    Issue #3334825 by bircher, itamair: Allow disabling zoom control
    
itamair’s picture

Status: Active » Fixed

Thanks @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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.