Hello,

I'm working on the google maps. I've modified an example according to
my application needs. from then on, i'm not able to see any content on
the openInfoWindow popup.


Please check the code below. where I open the window.

public function markerClicked(event:MapMouseEvent):void{
                                var marker:Marker = event.target as Marker;
                                var overlay:InputBox1 = new InputBox1();

                                overlay.marker=marker;
                                var o:Object =
MapUtils.getMarkerDataByLatAndLng(marker.getLatLng().lat(),marker.getLatLng().lng(),dataProvider);
                                /* overlay.address.text = (o["markerData"] as
MarkerData).pharmacyVo["address"];
                                overlay.heading.text = (o["markerData"] as
MarkerData).pharmacyVo["pharmacyName"]; */
                                if (o != null){
                                        //inputBox = o["markerData"].name;
                                        marker.openInfoWindow(new
InfoWindowOptions({customContent:overlay,width:200,height:
50,drawDefaultFrame:true}),true);
                                }
                        }

Window i'm opening.

package com.greenclinical.gcs.fe.view.frontdesk.google.components
{

        import com.google.maps.overlays.Marker;
        import
com.greenclinical.gcs.fe.view.frontdesk.google.events.InfoWindowClosedEvent;

        import flash.events.MouseEvent;

        import mx.containers.HBox;
        import mx.controls.Button;
        import mx.controls.TextInput;

        public class InputBox1 extends HBox
        {
                public var textBox:TextInput;
                public var marker:Marker;
                public var markerData:MarkerData;
                public var button:Button;

                public function InputBox1(){
                        width=300;
                        height=25;
                        textBox = new TextInput();
                        button = new Button();
                        button.label = "Save";
                        button.addEventListener(MouseEvent.CLICK,closeOverLay);
                        addChild(textBox);
                        addChild(button);
                }
                public function closeOverLay(event:MouseEvent):void{
                        var e:InfoWindowClosedEvent = new
InfoWindowClosedEvent(textBox.text);
                        marker.closeInfoWindow();
                        e.marker = marker;
                        marker.dispatchEvent(e);
                }
        }
}

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