PageRenderTime 21ms CodeModel.GetById 1ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 47 lines | 43 code | 3 blank | 1 comment | 0 complexity | aa6ad225a2b297db147bfdbea93d4f03 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>CustomMapMoon.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;?&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; xmlns:maps=&quot;</span><span class="MXMLString">com.google.maps.*</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">absolute</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; 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;mx:Panel</span><span class="MXMLDefault_Text"> title=&quot;</span><span class="MXMLString">Google Maps API for Flash Demo</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;</span><span class="MXMLComponent_Tag">&gt;</span>
13  <span class="MXMLComponent_Tag">&lt;maps:Map</span><span class="MXMLDefault_Text"> 
14    id=&quot;</span><span class="MXMLString">map</span><span class="MXMLDefault_Text">&quot; 
15    key=&quot;</span><span class="MXMLString">ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g</span><span class="MXMLDefault_Text">&quot; 
16    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;
17    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;
18    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;</span><span class="MXMLComponent_Tag">/&gt;</span>
19   <span class="MXMLComponent_Tag">&lt;/mx:Panel&gt;</span>
20   <span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
21       <span class="ActionScriptOperator">&lt;!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</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        <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>;
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">MapMouseEvent</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">Map</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">MapOptions</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">MapType</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">controls</span>.<span class="ActionScriptDefault_Text">MapTypeControl</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">styles</span>.<span class="ActionScriptDefault_Text">FillStyle</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">extras</span>.<span class="ActionScriptDefault_Text">planetary</span>.<span class="ActionScriptDefault_Text">Moon</span>;
31        
32         <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">Event</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
33            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">opts</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">MapOptions</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">MapOptions</span><span class="ActionScriptBracket/Brace">()</span>;
34            <span class="ActionScriptDefault_Text">opts</span>.<span class="ActionScriptDefault_Text">mapTypes</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">Moon</span>.<span class="ActionScriptDefault_Text">ELEVATION_MAP_TYPE</span>, <span class="ActionScriptDefault_Text">Moon</span>.<span class="ActionScriptDefault_Text">VISIBLE_MAP_TYPE</span><span class="ActionScriptBracket/Brace">]</span>;
35            <span class="ActionScriptDefault_Text">opts</span>.<span class="ActionScriptDefault_Text">mapType</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Moon</span>.<span class="ActionScriptDefault_Text">VISIBLE_MAP_TYPE</span>;
36            <span class="ActionScriptDefault_Text">opts</span>.<span class="ActionScriptDefault_Text">center</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">LatLng</span><span class="ActionScriptBracket/Brace">(</span>28, <span class="ActionScriptOperator">-</span>90<span class="ActionScriptBracket/Brace">)</span>;
37            <span class="ActionScriptDefault_Text">opts</span>.<span class="ActionScriptDefault_Text">zoom</span> <span class="ActionScriptOperator">=</span> 6;
38            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">setInitOptions</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">opts</span><span class="ActionScriptBracket/Brace">)</span>;
39        <span class="ActionScriptBracket/Brace">}</span>
40                
41        <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>
42            <span class="ActionScriptReserved">this</span>.<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>;
43        <span class="ActionScriptBracket/Brace">}</span>
44       <span class="ActionScriptBracket/Brace">]]</span><span class="ActionScriptOperator">&gt;</span>
45   <span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>
46<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
47</html>