I'm developing a map for a project that has multiple location but they're all in the same county/ city.

How do I limit the user from panning outside the county/ city in Bing Maps? I know that I can use disablePanning in map options but how do I set it the City boundaries only?

  • Would something like this help – dassouki Dec 6 '14 at 13:06
  • Thanks dassouki, that helps, However what I need to do is to limit the panning, not the zooming. See example using Google Maps here (you will have to zoom out and then try to pan- you will see that for example you can't reach America by panning) – Geremy Dec 6 '14 at 13:58
  • Anyone pleaaaaase – Geremy Dec 12 '14 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.