Hi Mili-

You can store a LatLngBounds object for the viewport you're interested
in, and then change map type if current viewport contains that. Maybe
something like:

var pointSW = new LatLng(37.363958,14.436035);
var pointNE = new LatLng(38.14568,15.919189);
var myBounds = new LatLngBounds(pointSW, pointNE);

map.addEventListener(MapMoveEvent.MOVE_END, function(e:MapMoveEvent):void {
  if (map.getLatLngBounds().contains(myBounds)) {
    map.setMapType(MapType.PHYSICAL_MAP_TYPE);
  }
}

- pamela

http://code.google.com/apis/maps/documentation/flash/reference.html#LatLngBounds.containsBounds

On Tue, May 12, 2009 at 10:32 AM, Mili <[email protected]> wrote:
>
> Pamela,
>
> Thanks for the reply
> Could you please make me understand how to swith map for particular
> VIEWPORTS ?
> It would be great if you can send one simple example or code snipet ..
>
> Thank you,
> MIli.
>
> On May 11, 6:51 pm, pamela fox <[email protected]> wrote:
>> Hi Mili-
>>
>> I'm not sure this would be legal (and it wouldn't be technically
>> easy). What if you simply switched map types for particular viewports?
>>
>> - pamela
>>
>>
>>
>> On Tue, May 12, 2009 at 1:08 AM, Mili <[email protected]> wrote:
>>
>> > Hello ALL,
>>
>> >  I'm trying to use google map flex API and exploring how to show the
>> > selected (NOT all ) satellite imagery on nomal type of google map.
>> > How
>> > can I get the satellite imagery or image tiles dynamically given the
>> > latitudes/longitudes to show the images on my google normal google
>> > map?
>> > So I think we need to get the images tiles from google service and
>> > show the tiles using TilesOverlay on normal type of map.
>> > Could you please help how can I do that ? Is it legal to use selected
>> > satellite imagery  to show particular area on normal google map type
>> > using google map flex API ?
>>
>> > Greatly appreciate your quick help please!
>>
>> > Thank you so much.
>> > Mili- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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