Those are LatLng objects. The basic point is that you can create an
empty LatLngBounds object, extend it with the LatLng of each of your
markers, and then you can set the map to zoom and center to that
bounds.

- pamela


On Mon, Apr 20, 2009 at 11:31 PM, Flex Baby <[email protected]> wrote:
>
> hi pami,
> wat is the values latLng1, latLng2, latLng3?
> any sample application?
>
> On Apr 20, 5:03 pm, pamela fox <[email protected]> wrote:
>> Hi Flex Baby-
>>
>> You can use LatLngBounds. Here's some simple code that should
>> demonstrate the general concept:
>>
>> var bounds:LatLngBounds = new LatLngBounds();
>> bounds.extend(latLng1);
>>
>> bounds.extend(latLng2);
>> bounds.extend(latLng3);
>> map.setCenter(bounds.getCenter());
>> map.setZoom(map.getBoundsZoomLevel(bounds));
>>
>> - pamela
>>
>>
>>
>> On Mon, Apr 20, 2009 at 3:44 PM, Flex Baby <[email protected]> wrote:
>>
>> > hi,
>> > i have i doubt.
>> > we r doing map related applications.
>> > this is my problem.
>> > In map,Default extend is some particular place.
>> > now i want to search something,ie (example)i search that where is the
>> > fire service offices.the result is displayed in points in map.
>> > sometimes the point is going outside the default the extend area.
>> > now i want to focus all the points.
>> > how to extend tha map which is related the mapoints?
>> > any samples?
>
> >
>

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