How to limit panning in Custom Map Type?

  • TrainZer
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago - 11 years 11 months ago #755 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: 11 years 11 months ago by TrainZer.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #756 by Dima
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.

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
  • New Member
More
11 years 10 months ago - 11 years 10 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?
Last edit: 11 years 10 months ago by TrainZer.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #767 by Dima
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.

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
  • New Member
More
11 years 10 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.

More
11 years 10 months ago #769 by Dima
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.093 seconds

Donate


Go to top