- Posts: 16
- Thank you received: 0
How to limit panning in Custom Map Type?
- TrainZer
- Topic Author
- Offline
- New Member
Less
More
12 years 5 months ago - 12 years 5 months ago #755
by TrainZer
How to limit panning in Custom Map Type? was created by TrainZer
I made a custom map which is made of my own tiles (special touristic map), and now the problem is that user can drag the map out of its boundaries, and may just lose the map behind the map window. How can I limit the panning setting to prevent map from dragging out of my tiles limit? Where can I set the limiting coords manually? I don't want to turn the panning off, because my map has many zoom levels and needs to be dragged. And by the way the other question - can I turn off the Google logo and "Terms of use" link, when I use my own maps?
Last edit: 12 years 5 months ago by TrainZer.
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
12 years 5 months ago #756
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Re: How to limit panning in Custom Map Type?
Hi.
As for first question - I'll check can I do something in this case.
As for second - terms and logo - check google's terms, if you can do this. If yes, I'll check can I remove it.
As for first question - I'll check can I do something in this case.
As for second - terms and logo - check google's terms, if you can do this. If yes, I'll check can I remove it.
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.
- TrainZer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
12 years 5 months ago - 12 years 5 months ago #766
by TrainZer
Replied by TrainZer on topic Re: How to limit panning in Custom Map Type?
Any ideas how to limit the panning? I found some code here:
stackoverflow.com/questions/3125065/how-...n-google-maps-api-v3
Where do I need to write this code?
Where do I need to write this code?
Last edit: 12 years 5 months ago by TrainZer.
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
12 years 5 months ago #767
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Re: How to limit panning in Custom Map Type?
Hi.
Sorry, I was very busy.
Yes, I found suggestions for it. There is no standard properties to fix map boundaries, and there is need to catch map boundaries change event and do some logic.
I think I'll do this in next release.
Sorry, I was very busy.
Yes, I found suggestions for it. There is no standard properties to fix map boundaries, and there is need to catch map boundaries change event and do some logic.
I think I'll do this in next release.
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.
- TrainZer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
12 years 5 months ago #768
by TrainZer
Replied by TrainZer on topic Re: How to limit panning in Custom Map Type?
If I want to test the code by the provided link, where should I copy it to test if it works? Should I add it to "tmpl\default.php"?
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
12 years 5 months ago #769
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Re: How to limit panning in Custom Map Type?
yes.
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.
Time to create page: 0.211 seconds