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

InitialZoomLevel #301

Open
christianostrem opened this issue Jan 27, 2022 · 3 comments
Open

InitialZoomLevel #301

christianostrem opened this issue Jan 27, 2022 · 3 comments

Comments

@christianostrem
Copy link

christianostrem commented Jan 27, 2022

Hi,

I have an issue where i am getting different results on zooming distance.
The goal is too zoom to 20m always.

Desktop:
Safari, Firefox, Brave = 20m
Chrome, Opera = 300m
Edge = 3 km

Mobile:
Chrome mobile = 20m

 findLocation = L.control.locate({
              position: "bottomright",
              icon: "fa fa-crosshairs",
              drawCircle: true,
              keepCurrentZoomLevel: false,
              initialZoomLevel: 18,
              maxZoom: 18,
          }).addTo(this.map);

If I do an active choice and click the geolocation off and on again it will zoom to 20m in all browsers.

Is this a restriction or a bug.

@domoritz
Copy link
Owner

Can you dig into it? Could this be a leaflet bug?

@christianostrem
Copy link
Author

I have tried everything. I do not understand where it fails.
I have looked at the code also.

Maby someone else could try to see if they have the same experience?

@domoritz
Copy link
Owner

Can you make a website where people can go to try?

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

No branches or pull requests

2 participants