You are on the right track.

You need to do something like this:

map.getCurrentMapType().getName(false); //returns the current type
full name
map.getCurrentMapType().getName(true); //returns the current type
abbreviated name

or do the following to loop through all the available map types

for each(type:IMapType in map.getMapTypes()) {
    type.getName(false);
    type.getName(true);
}

On May 27, 6:56 am, "[Paul Ferrie]" <[email protected]> wrote:
> Hi guys,
> I am trying to get the current type of map used.
> I did come 
> acrosshttp://groups.google.com/group/google-maps-api-for-flash/browse_threa...
>
> Thenhttp://code.google.com/apis/maps/documentation/flash/reference.html#M...
>
> But can seem to get it to work.
> I've tried
> trace("map type:"+map.getName(opt_short?:Boolean))
> trace("map type:"+map.getName(opt_short))
> trace("map type:"+map.getName())
--~--~---------~--~----~------------~-------~--~----~
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