PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/DragZoomonControl/src/DragZoomonControl.mxml

http://gmaps-utility-library-flash.googlecode.com/
Macromedia eXtensible Markup Language | 22 lines | 20 code | 2 blank | 0 comment | 0 complexity | 7d571d54c1474e9b0b83713e9bfca462 MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?>
 2<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" viewSourceURL="srcview/index.html">
 3<maps:Map 
 4	xmlns:maps="com.google.maps.*" 
 5	id="map" mapevent_mapready="onMapReady(event)" 
 6  	width="100%" 
 7  	height="100%" 
 8    key="ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g"/>
 9<mx:Script>
10    <![CDATA[
11    	import com.google.maps.extras.dragzoomcontrol.DragZoomControl;
12    	import com.google.maps.MapType;
13    	import com.google.maps.LatLng;
14    	
15	    private function onMapReady(event:Event):void {	
16			map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);
17			map.addControl(new DragZoomControl());   	  
18	    }
19    ]]>
20</mx:Script>	
21	
22</mx:Application>