Main.GOOGMAPKEY is a public static string constant.

<?xml version="1.0" encoding="utf-8"?>
<local:AppShell xmlns:fx="http://ns.adobe.com/mxml/2009";
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:maps="com.google.maps.*" xmlns:local="*" width="700"
height="500">
        <fx:Script>
                <![CDATA[
                        import com.google.maps.InfoWindowOptions;
                        import com.google.maps.LatLng;
                        import com.google.maps.MapEvent;
                        import com.google.maps.MapOptions;
                        import com.google.maps.controls.MapTypeControl;
                        import com.google.maps.controls.OverviewMapControl;
                        import com.google.maps.controls.ScaleControl;
                        import com.google.maps.controls.ZoomControl;
                        import com.google.maps.overlays.Marker;
                        import com.google.maps.overlays.MarkerOptions;

                        public var initPoint:LatLng = new LatLng(-33.8581, 
151.2149);
                        public var zoomFactor:int=3;

                        private var m:Marker;


                        protected function 
mappreinitializeHandler(event:MapEvent):void
                        {
                                // TODO Auto-generated method stub
                                map.setInitOptions(new
MapOptions({center:initPoint,zoom:zoomFactor}));
                        }

                        private function mapReady():void
                        {       m = new Marker(initPoint,new MarkerOptions({}));
                                map.addOverlay(m);
                                map.enableScrollWheelZoom();
                                map.addControl(new MapTypeControl());
                                map.addControl(new 
com.google.maps.controls.ZoomControl());
                                map.addControl(new 
com.google.maps.controls.OverviewMapControl());
                                map.addControl(new 
com.google.maps.controls.ScaleControl());
                        }
                ]]>
        </fx:Script>
        <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) 
here
-->
        </fx:Declarations>
        <maps:Map id="map" mapevent_mapready="mapReady()"
mapevent_mappreinitialize="mappreinitializeHandler(event)"
width="100%" height="100%" key="Main.GOOGMAPKEY" sensor="false">

        </maps:Map>
</local:AppShell>

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