PageRenderTime 31ms CodeModel.GetById 25ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/DragZoomonControl/bin-release/srcview/source/DragZoomonControl.mxml.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 32 lines | 28 code | 3 blank | 1 comment | 0 complexity | 15762590e745ee76599581c6e029b912 MD5 | raw file
 1<!-- saved from url=(0014)about:internet -->
 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 3<html xmlns="http://www.w3.org/1999/xhtml">
 4<head>
 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 6<title>DragZoomonControl.mxml</title>
 7<link rel="stylesheet" type="text/css" href="../SourceStyles.css"/>
 8</head>
 9
10<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
11<span class="MXMLComponent_Tag">&lt;mx:Application</span><span class="MXMLDefault_Text"> xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">absolute</span><span class="MXMLDefault_Text">&quot; viewSourceURL=&quot;</span><span class="MXMLString">srcview/index.html</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
12<span class="MXMLComponent_Tag">&lt;maps:Map</span><span class="MXMLDefault_Text"> 
13    xmlns:maps=&quot;</span><span class="MXMLString">com.google.maps.*</span><span class="MXMLDefault_Text">&quot; 
14    id=&quot;</span><span class="MXMLString">map</span><span class="MXMLDefault_Text">&quot; mapevent_mapready=&quot;</span><span class="MXMLString">onMapReady(event)</span><span class="MXMLDefault_Text">&quot; 
15      width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; 
16      height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; 
17    key=&quot;</span><span class="MXMLString">ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
18<span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
19    <span class="ActionScriptOperator">&lt;!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
20        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">google</span>.<span class="ActionScriptDefault_Text">maps</span>.<span class="ActionScriptDefault_Text">extras</span>.<span class="ActionScriptDefault_Text">dragzoomcontrol</span>.<span class="ActionScriptDefault_Text">DragZoomControl</span>;
21        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">google</span>.<span class="ActionScriptDefault_Text">maps</span>.<span class="ActionScriptDefault_Text">MapType</span>;
22        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">google</span>.<span class="ActionScriptDefault_Text">maps</span>.<span class="ActionScriptDefault_Text">LatLng</span>;
23        
24        <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">onMapReady</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Event</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>    
25            <span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">setCenter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">LatLng</span><span class="ActionScriptBracket/Brace">(</span>40.736072,<span class="ActionScriptOperator">-</span>73.992062<span class="ActionScriptBracket/Brace">)</span>, 14, <span class="ActionScriptDefault_Text">MapType</span>.<span class="ActionScriptDefault_Text">NORMAL_MAP_TYPE</span><span class="ActionScriptBracket/Brace">)</span>;
26            <span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">addControl</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">DragZoomControl</span><span class="ActionScriptBracket/Brace">())</span>;         
27        <span class="ActionScriptBracket/Brace">}</span>
28    <span class="ActionScriptBracket/Brace">]]</span><span class="ActionScriptOperator">&gt;</span>
29<span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>    
30    
31<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
32</html>