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

[BUG] The map can not scroll Horizontal like leaflet.js #1201

Closed
Huanxin1997 opened this issue Mar 29, 2022 · 11 comments
Closed

[BUG] The map can not scroll Horizontal like leaflet.js #1201

Huanxin1997 opened this issue Mar 29, 2022 · 11 comments
Labels
bug This issue reports broken functionality or another error P: ∞ (won't add) This feature request won't be implemented

Comments

@Huanxin1997
Copy link

Huanxin1997 commented Mar 29, 2022

Hi author.
image
I want the map can be dragged on horizontal direction indefinitely. But it is limit for this operation. And the zoom change will be limited for outside area.
And the leaflet website demo can do this. https://leafletjs.com/SlavaUkraini/index.html
image

If there is any config field to do this? and

@Huanxin1997 Huanxin1997 added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels Mar 29, 2022
@ibrierley
Copy link
Collaborator

I'm not entirely sure I understand, when you say "it is limit for this operation". Could you try and clarify ? Do you mean you can't drag horizontally, or you only want to be able to drag horizontally and block vertically or something ?

@Huanxin1997
Copy link
Author

Hello
I hope the map can be swiped left or right indefinitely.

@Huanxin1997
Copy link
Author

image

This is the screenshot of my attempt with leaflet.js. When I set the maxBounds, the behavior is same with the flutter_map. If is there any methods to control the maxBounds?

@JaffaKetchup
Copy link
Member

Hi @Huanxin1997,
Can you please clarify your question? I'm understanding it as "can I have the map scroll infinitely past the map bounds (where it starts repeating)", but I might be wrong. Many thanks!

@Huanxin1997
Copy link
Author

Hi @Huanxin1997,
Can you please clarify your question? I'm understanding it as "can I have the map scroll infinitely past the map bounds (where it starts repeating)", but I might be wrong. Many thanks!

I think you have understood the question.

@github-actions
Copy link

github-actions bot commented May 7, 2022

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label May 7, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@knaoe
Copy link

knaoe commented Jun 28, 2022

Hi. I need this horizontal infinite scroll feature. Is there any workaround?

@ibrierley
Copy link
Collaborator

I don't think there's an easy workaround for this currently. I suspect one would have to override the crs and use a different LatLng2 provider, but maybe someone else would have some ideas.

@JaffaKetchup
Copy link
Member

I'm going to close this now due to inactivity. If you need this functionality, please open another feature request in this issue's place.
Thanks for your interest!

@JaffaKetchup JaffaKetchup closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2022
@JaffaKetchup JaffaKetchup added P: ∞ (won't add) This feature request won't be implemented non-fatal and removed needs triage This new bug report needs reproducing and prioritizing labels Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error P: ∞ (won't add) This feature request won't be implemented
Projects
None yet
Development

No branches or pull requests

4 participants