グーグルマップ

by tepe
♥2 | Line 25 | Modified 2011-03-15 15:39:55 | MIT License
play

ActionScript3 source code

/**
 * Copyright tepe ( http://wonderfl.net/user/tepe )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/k06Z
 */

<?xml version="1.0" encoding="utf-8"?> 
    <mx:Application
     xmlns:mx="http://www.adobe.com/2006/mxml"
     layout="absolute"> 
     
        <maps:Map xmlns:maps="com.google.maps.*" 
         id="map"
         mapevent_mapready="onMapReady(event)" 
         width="100%" height="100%" key="Abarrow"/> 
         
        <mx:Script> 
            <![CDATA[ 
                import com.google.maps.LatLng; 
                import com.google.maps.Map; 
                import com.google.maps.MapEvent;
                import com.google.maps.MapMouseEvent;
                import com.google.maps.MapType; 
                import com.google.maps.controls.ZoomControl;
                import com.google.maps.controls.MapTypeControl;
                private function onMapReady(event:Event):void {
                    this.map.setCenter(new LatLng(39.15,141.15), 14, MapType.HYBRID_MAP_TYPE); 
                    map.addControl(new ZoomControl()); 
                    map.addControl(new MapTypeControl());

                } 
            ]]> 
        </mx:Script> 
    </mx:Application>