Hi acts7, Robert: Just as a tip - for non-Flash specific questions like this, it's often the case that the JavaScript API developers have come up with solutions already. Since the APIs are so similar, it's usually easy to port those solutions over. It's worth doing a quick search in the Google-Maps-API group if you can't find the solution here fast enough. That's often what I do to answer your questions. :)
Thankfully, this is one of those cases, here's a demo from JS API Guru Mike Williams for restricting panning: http://econym.org.uk/gmap/example_range.htm Here's an alternative implementation that restricts the viewport so that it always contains the original center point (and this one is in AS3): http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/RestrictedPanDemo/RestrictedPanDemo.html - pamela On Sat, Mar 21, 2009 at 9:04 AM, [email protected] <[email protected]> wrote: > > Hey Robert - you sure can. > first - check out this link to set LatLng Bounds > > http://code.google.com/apis/maps/documentation/flash/events.html#Event_Closures > > Then disable.... oh wait - its a little more complicated than just > disabling the mousemove isnt it? > Because when zoomed in - you need to be able to move the map around - > you just don't want them to go past certain bounds... > hmm - interesting topic. > > Im not sure how new you are - but check out the link above to set your > bounds. > You may be able to do this by setting the bounds and allowing zoom > level. > Im fairly new to the flash api myself. - hope it at least gets you > started. > Check out the documentation for specific commands. > > And perhaps someone else could chime in with the ability to do this. > > On Mar 19, 9:50 am, Robert Malko <[email protected]> wrote: >> Is there a way to set a hard bounds to not let somebody drag the map >> past a certain point? I'd like to contain my map to Manhattan. >> >> Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
