Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit the zoom to map size on minimap #140

Closed
patolax opened this issue Apr 30, 2018 · 1 comment
Closed

Fit the zoom to map size on minimap #140

patolax opened this issue Apr 30, 2018 · 1 comment
Labels

Comments

@patolax
Copy link

patolax commented Apr 30, 2018

We load a map of a building using leaflet. However when we use minimap it is hard to calculate the zoom level. Default viewport has large white space around the map view port, which is entirely covered by aimingRect. i.e around aimingRect there is large whitespace.

We use deepzoom layer as tileLayer to be added to MiniMap.

  1. Any idea how to calculate the zoom level, so that default view port fills up control without large white space
  2. is there away to set scrollWheelZoom to false, so that we can disable zooming.
@patolax patolax changed the title Cannot read property 'lng' of null Fit the zoom to map size on minmap Apr 30, 2018
@patolax patolax changed the title Fit the zoom to map size on minmap Fit the zoom to map size on minimap Apr 30, 2018
@robpvn
Copy link
Contributor

robpvn commented Aug 16, 2018

Hi, sorry about being so late to answer. I have no experience with deepzoom layer, but I guess it's probably related to CRSes being different, like with #132 .

Like it says in the readme, there is an option to set zoomLevelFixed to whatever zoom you want, which will disable zooming.

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

No branches or pull requests

2 participants