- Posts: 67
- Thank you received: 0
Map bounds and draggable option
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
6 years 7 months ago #11595
by Harlock
Map bounds and draggable option was created by Harlock
Hi Dmitry,
Could you please explain a little further how map bounds work ?
I've set coordinates for the top left and bottom right locations (which made sense to me) but it doesn't seem to work. The maps shows another place.
I've tried the opposite idea : top right and bottom left. Same result.
So which values are we supposed to use ? Top center and bottom center ?
Then I thought I could turn off draggable option. Associated with min and max zooming scales, that should do the trick, right ? But once again the result is not what I expected. It enables zooming on mouse scroll, which is not what I wanted.
In a perfect world I'd like the map to keep being draggable but set the limits of the map as close as possible as my max zoom out (meaning I can't drag anymore at max zooming out).
Any idea ? Is that possible ?
Could you please explain a little further how map bounds work ?
I've set coordinates for the top left and bottom right locations (which made sense to me) but it doesn't seem to work. The maps shows another place.
I've tried the opposite idea : top right and bottom left. Same result.
So which values are we supposed to use ? Top center and bottom center ?
Then I thought I could turn off draggable option. Associated with min and max zooming scales, that should do the trick, right ? But once again the result is not what I expected. It enables zooming on mouse scroll, which is not what I wanted.
In a perfect world I'd like the map to keep being draggable but set the limits of the map as close as possible as my max zoom out (meaning I can't drag anymore at max zooming out).
Any idea ? Is that possible ?
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
6 years 7 months ago #11597
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Map bounds and draggable option
You have to define two coordinate pairs.
Left bottom and Right top.
Left bottom and Right top.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 67
- Thank you received: 0
6 years 7 months ago #11598
by Harlock
Replied by Harlock on topic Map bounds and draggable option
Does it have to be "inside" our actual map max zoom out to work ?
Please Log in or Create an account to join the conversation.
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 67
- Thank you received: 0
6 years 7 months ago #11599
by Harlock
Replied by Harlock on topic Map bounds and draggable option
Well, maybe I don't understand how it is supposed to work, but it seems those limits are not the same according to my zooming options. As if they were not "absolute". See what I mean ? If I zoom out I can see landscape beyond my limits. Maybe it is because the map position is not recalculated on each zooming in or out.
Well, at least now I have limits that I can work with.
Well, at least now I have limits that I can work with.
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
6 years 7 months ago #11601
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Map bounds and draggable option
If you zoom in, you can't move map center outside limits.
But if you zoom out you can see map outside limits. In this case you can restrict max zoom value in map details.
But if you zoom out you can see map outside limits. In this case you can restrict max zoom value in map details.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 67
- Thank you received: 0
6 years 7 months ago #11603
by Harlock
Replied by Harlock on topic Map bounds and draggable option
Oh you mean map limits work with precision only at max zooming ?
OK then, at least I understand how it's supposed to work
What about my other question ? Turning off draggable option is activating zooming on mouse scroll for me. Is that the expected behaviour ?
OK then, at least I understand how it's supposed to work
What about my other question ? Turning off draggable option is activating zooming on mouse scroll for me. Is that the expected behaviour ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.182 seconds