Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Add a feature to stay at maxZoom instead of resetting to initialZoom #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajayg415
Copy link

This PR includes a new optional Boolean parameter stayAtMaxZoom, that will conditionally return the next zoom step when user reached maximum zoom value.

Scenario1:

  • user did not set this value in local.
  • so framework will pick default value false
  • user reached maximum zoom value and made double clicks.
  • view is reset to initialZoom value

Scenario 2:

  • user set stayAtMaxZoom = true in his local.
  • user reached maximum zoom value and made double clicks.
  • view won't get is reset to initialZoom instead stays at maximumZoom value.

I'm not sure how much this feature is useful to others, I need this requirement in my application. so I raised one feature request ( #80) and this PR simultaneously.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant