Hi Saxon,
it works fine, but I had a problem with this solution.
When I try to move out of bounds with the OverviewMapControl() it
throws me an error

TypeError: Error #1009: No se puede acceder a una propiedad o a un
método de una referencia a un objeto nulo.
                                    //you can't access a property or
method of a null object
        at com.google.maps.core::MapImpl/doPan()
        at com.google.maps.core::MapImpl/internalPanTo()
        at com.google.maps.core::MapImpl/panTo()
        at com.google.maps.controls::OverviewMapControl/dragStop()
        at com.google.maps.core::StandardMouseImpl/dispatchMouseUp()
        at com.google.maps.core::StandardMouseImpl/reportMouseEvent()
        at com.google.maps.core::MapImpl/reportMouseUp()

It throws me the error if I try to move out of bounds near of the
limit. When I try to move with the overviewMapControl far from my
bounds it doesn't throw any error and center the maps in the correct
bounds....

Any idea?
Thanks.
On 17 abr, 16:37, Saxon <[email protected]> wrote:
> Hi Javier,
>
> There's a discussion on that here:
>
> http://groups.google.com/group/google-maps-api-for-flash/browse_threa...
>
> Basically you handle the move event, and then move the map back to
> where you want it.
>
> Saxon
>
> On Apr 16, 8:10 pm, Javier <[email protected]> wrote:
>
>
>
> > Hi,
> > I have my  private function onMapPreInit(event:Event):void  that
> > centers the map and assigns a level zoom, but how can i block the map
> > to only show this region or country?
>
> > f.e: I want to center the map in NY, and not let the user navigate to
> > other states,or countries, blocking the map and the screen to NY,
> > anyone knows how can I do this?
>
> > Thanks!!- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to