I get an error when reloading google map component.

public function fillContainerTab3():void{

                        _map.addEventListener(MapEvent.MAP_READY, onMapReady);
                        _map.key = myKey;
                        _map.setSize(new Point(675,500));

                        _map.x          = 7;
                        _map.y          = 70;

                        _containerTab3.addChild(_map);

                }//end function fillContainerTab3()

                private function onMapReady(event:Event):void {
                        var standardLat:Number = 47.246860;
                        var standardLng:Number = 12.117934;


                                _map.setCenter(new 
LatLng(standardLat,standardLng), 16,
MapType.NORMAL_MAP_TYPE);


                        //Add zoom controler
                        _map.addControl(new ZoomControl());

                        //Set marker
                        var markerA:Marker = new Marker(
                                new LatLng(47.246860,12.117934),
                                new MarkerOptions({
                                          strokeStyle: new StrokeStyle({color: 
0x987654}),
                                          fillStyle: new FillStyle({color: 
0x223344, alpha: 0.8}),
                                          radius: 12,
                                          hasShadow: true
                                })
                        );
                        _map.addOverlay(markerA);

                        //_map.openInfoWindow(_map.getCenter(), new 
InfoWindowOptions
({title: "Hello", content: "World"}));
                }

The error i get is:
Error: Object not initialized
        at com.google.maps.wrappers::Wrapper$/checkValid()
        at com.google.maps.wrappers::IMapWrapper/isLoaded()
        at com.google.maps::Map/isLoaded()
        at com.google.maps::Map/internalSetSize()
        at com.google.maps::Map/setSize()
        at objectDetailView/fillContainerTab3()
        at objectDetailView/fillContainerTab2()
        at objectDetailView/insertInterior()
        at objectDetailView/fillContainerTab1()
        at objectDetailView/init()
        at objectDetailView()
        at searchModuleCore/showDetails()

What can I do?

Thank you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to