following is my code for initializing:

<maps:Map3D  xmlns:maps="com.google.maps.*" url="http://xxx.xxx.xxx";
                                        id="map"
                                        
mapevent_mappreinitialize="onMapPreInitialize(event)"
                                        mapevent_mapready="onMapReady(event)"
                                        width="100%"
                                        height="100%"
        
key="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"/>
                        import com.view.gmap.InfoWindowTabbedComponent;
                        import com.google.maps.overlays.MarkerOptions;
                        import com.google.maps.overlays.Marker;
                        import com.google.maps.controls.MapTypeControl;
                        import com.google.maps.controls.NavigationControl;

                        import com.google.maps.MapMouseEvent;
                        import com.google.maps.LatLng;
                        import com.google.maps.Map3D;
                        import com.google.maps.MapEvent;
                        import com.google.maps.MapOptions;
                        import com.google.maps.MapType;
                        import com.google.maps.MapTypeOptions;
                        import com.google.maps.InfoWindowOptions;
                        import com.google.maps.View;
                        import com.google.maps.geom.Attitude;

                        import com.google.maps.controls.NavigationControl;
                        import com.google.maps.geom.Attitude;


                        private var HOME:LatLng = new LatLng(0,0);
                        private var DEFAULT_ZOOM:Number = 11;

                        private function onMapPreInitialize(event:Event):void {
                                var myMapOptions:MapOptions = new MapOptions;
                                myMapOptions.center = HOME;
                                myMapOptions.mapType = MapType.NORMAL_MAP_TYPE;
                                myMapOptions.viewMode = 
View.VIEWMODE_PERSPECTIVE;
                                myMapOptions.attitude = new Attitude(0,0,0);
                                this.map.setInitOptions(myMapOptions);
                        }
                        private function onMapReady(event:Event):void {

                                var myTileLayer:MyTileLayer=new 
MyTileLayer('http://xxxx.xxx.xx/
xxxxxxx');
                                var myMapType:MapType=new MapType
([myTileLayer],MapType.NORMAL_MAP_TYPE.getProjection(), "testing", new
MapTypeOptions({tileSize: 256,minResolution: 1, maxResolution: 18}));


                                map.addMapType(myMapType);
                                map.setMapType(myMapType);

                                map.getOptions().viewMode =  
View.VIEWMODE_PERSPECTIVE;
                                map.setZoom(DEFAULT_ZOOM);

                                map.addControl(new MapTypeControl());
                                map.addControl(new NavigationControl());
                                map.enableScrollWheelZoom();
                                map.enableContinuousZoom();

                                addContextMenu();

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