Hi,

Our requirement is to show the map in a popup window and its working
fine….however the default 'Map' button is not in the selectd state
when I open the popup again.

the problem is:

1. Click ‘Show Google Map Button’
2. Popup opens as default map with Map ‘Normal’ button selected.
3. Close the window.
4. Click the Show Google Map Button again
<Expected result>
Popup opens with 'Map' button selected.
<Actual result>
But popup opens and 'Map’s Normal' button is NOT selected.

Can Anyone guide me please?

PS : the function I use is given below:”
                  private function
onMapPreInitialize(event:Event):void {
                        var opts:MapOptions = new MapOptions();
                        var normalType:IMapType = new
MapType(MapType.NORMAL_MAP_TYPE.getTileLayers(),
 
MapType.NORMAL_MAP_TYPE.getProjection(),
                                                            "Map",
                                                            new
MapTypeOptions({maxResolution: 4, minResolution: 2}));

                        var satelliteType:IMapType = new
MapType(MapType.SATELLITE_MAP_TYPE.getTileLayers(),
 
MapType.SATELLITE_MAP_TYPE.getProjection(),
 
"Satellite",
                                                            new
MapTypeOptions({maxResolution: 4, minResolution: 2}));

                        var terrainType:IMapType = new
MapType(MapType.PHYSICAL_MAP_TYPE.getTileLayers(),
 
MapType.PHYSICAL_MAP_TYPE.getProjection(),
                                                            "Terrain",
                                                            new
MapTypeOptions({maxResolution: 4, minResolution: 2}));



                        opts.mapTypes = [normalType, satelliteType,
terrainType];

                        opts.center = new LatLng(20, 20);
                        opts.zoom=2

                        map.setInitOptions(opts);
                 }

                  private function onMapReady(evt:MapEvent=null):void
{
                        var navControl:NavigationControl = new
NavigationControl();
 
navControl.addEventListener(MouseEvent.ROLL_OVER, controlRollOver);
 
navControl.addEventListener(MouseEvent.ROLL_OUT, controlRollOut);
                        var mapControl:MapTypeControl = new
MapTypeControl();


 
mapControl.addEventListener(MouseEvent.ROLL_OVER, controlRollOver);
 
mapControl.addEventListener(MouseEvent.ROLL_OUT, controlRollOut);
                              mapControl.enabled = true;

                        map.enableContinuousZoom();
                        map.enableScrollWheelZoom();

                        map.addControl(mapControl);

                        map.addControl(navControl);

 
map.removeMapType(MapType.HYBRID_MAP_TYPE);
                  }

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