PageRenderTime 28ms CodeModel.GetById 17ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 58 lines | 50 code | 7 blank | 1 comment | 0 complexity | 09d62dee74daa6cb07be1427d443d68d 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>MarkerTrackerDemo.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"> 
12    xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot;
13    xmlns:maps=&quot;</span><span class="MXMLString">com.google.maps.*</span><span class="MXMLDefault_Text">&quot; 
14    layout=&quot;</span><span class="MXMLString">vertical</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>
15    <span class="MXMLComponent_Tag">&lt;maps:Map</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">map</span><span class="MXMLDefault_Text">&quot; mapevent_mapready=&quot;</span><span class="ActionScriptDefault_Text">onMapready</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptBracket/Brace">)</span>;<span class="MXMLDefault_Text">&quot; mapevent_mappreinitialize=&quot;</span><span class="ActionScriptDefault_Text">onMappreinitialize</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptBracket/Brace">)</span>;<span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; key=&quot;</span><span class="MXMLString">ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
16    <span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
17        <span class="ActionScriptOperator">&lt;!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
18            <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">controls</span>.<span class="ActionScriptDefault_Text">ControlPosition</span>;
19            <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">controls</span>.<span class="ActionScriptDefault_Text">MapTypeControl</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">controls</span>.<span class="ActionScriptDefault_Text">ZoomControl</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">controls</span>.<span class="ActionScriptDefault_Text">ZoomControlOptions</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">extras</span>.<span class="ActionScriptDefault_Text">markertracker</span>.<span class="ActionScriptDefault_Text">MarkerTracker</span>;
23            <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">overlays</span>.<span class="ActionScriptDefault_Text">MarkerOptions</span>;
24            <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">overlays</span>.<span class="ActionScriptDefault_Text">Marker</span>;
25            <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">styles</span>.<span class="ActionScriptDefault_Text">FillStyle</span>;
26            <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">styles</span>.<span class="ActionScriptDefault_Text">StrokeStyle</span>;
27            <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>;
28            <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">MapEvent</span>;
29            <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">MapOptions</span>;
30            <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>;
31            
32            
33            <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">onMappreinitialize</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">MapEvent</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
34                <span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">setInitOptions</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">MapOptions</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">mapType</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">MapType</span>.<span class="ActionScriptDefault_Text">NORMAL_MAP_TYPE</span>, <span class="ActionScriptDefault_Text">zoom</span><span class="ActionScriptOperator">:</span> 14<span class="ActionScriptBracket/Brace">}))</span>;
35            <span class="ActionScriptBracket/Brace">}</span>
36            
37            <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">MapEvent</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
38                <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">ZoomControl</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ZoomControlOptions</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">position</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ControlPosition</span><span class="ActionScriptBracket/Brace">(C</span><span class="ActionScriptDefault_Text">ontrolPosition</span>.<span class="ActionScriptDefault_Text">ANCHOR_TOP_LEFT</span><span class="ActionScriptBracket/Brace">)})))</span>;
39                <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">MapTypeControl</span><span class="ActionScriptBracket/Brace">())</span>;
40                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">exampleLatLng</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">LatLng</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">LatLng</span><span class="ActionScriptBracket/Brace">(</span>49.483126, 8.462144<span class="ActionScriptBracket/Brace">)</span>;
41                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">exampleMarker</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Marker</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Marker</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">exampleLatLng</span>, <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">MarkerOptions</span><span class="ActionScriptBracket/Brace">({</span>
42                    <span class="ActionScriptDefault_Text">strokeStyle</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">StrokeStyle</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">color</span><span class="ActionScriptOperator">:</span> 0<span class="ActionScriptDefault_Text">xffffff</span><span class="ActionScriptBracket/Brace">})</span>,
43                    <span class="ActionScriptDefault_Text">fillStyle</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">FillStyle</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">color</span><span class="ActionScriptOperator">:</span> 0<span class="ActionScriptDefault_Text">xb00000</span>, <span class="ActionScriptDefault_Text">alpha</span><span class="ActionScriptOperator">:</span> 0.8<span class="ActionScriptBracket/Brace">})</span>,
44                     <span class="ActionScriptDefault_Text">radius</span><span class="ActionScriptOperator">:</span> 12,
45                     <span class="ActionScriptDefault_Text">hasShadow</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptReserved">true</span>,
46                     <span class="ActionScriptDefault_Text">tooltip</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptString">&quot;example marker&quot;</span>
47                <span class="ActionScriptBracket/Brace">}))</span>;
48                
49                <span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">addOverlay</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">exampleMarker</span><span class="ActionScriptBracket/Brace">)</span>;
50                <span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">setCenter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">exampleLatLng</span><span class="ActionScriptBracket/Brace">)</span>;
51                
52                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">tracker</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">MarkerTracker</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">MarkerTracker</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">exampleMarker</span>, <span class="ActionScriptDefault_Text">map</span>, <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>;    
53            <span class="ActionScriptBracket/Brace">}</span>
54            
55        <span class="ActionScriptBracket/Brace">]]</span><span class="ActionScriptOperator">&gt;</span>
56    <span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>
57<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
58</html>