PageRenderTime 50ms CodeModel.GetById 16ms app.highlight 25ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/ArcGISLink/bin-release/srcview/source/TileLayerPreConfig.mxml.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 51 lines | 48 code | 2 blank | 1 comment | 0 complexity | a8939606ba5fc7aee50496cf8c85b00d 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>TileLayerPreConfig.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;
12                layout=&quot;</span><span class="MXMLString">absolute</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"> 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;
15            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;
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            width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;
18            height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;
19            key=&quot;</span><span class="MXMLString">ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&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">MapOptions</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">controls</span>.<span class="ActionScriptDefault_Text">NavigationControl</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">controls</span>.<span class="ActionScriptDefault_Text">ZoomControl</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">controls</span>.<span class="ActionScriptDefault_Text">MapTypeControl</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">LatLng</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">Map</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">MapType</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">interfaces</span>.<span class="ActionScriptOperator">*</span>;
31      <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">arcgislink</span>.<span class="ActionScriptOperator">*</span>;
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">Event</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span><span class="ActionScriptBracket/Brace">{</span>
34        <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">url</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&apos;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/Portland_ESRI_LandBase_AGO/MapServer&apos;</span>;
35        <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">agsType</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">ArcGISMapType</span><span class="ActionScriptOperator">=</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ArcGISMapType</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">url</span>, <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ArcGISMapTypeOptions</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">projection</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">ArcGISTileConfig</span>.<span class="ActionScriptDefault_Text">ARCGIS_ONLINE</span><span class="ActionScriptBracket/Brace">}))</span>;
36        <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>
37          <span class="ActionScriptDefault_Text">mapTypes</span><span class="ActionScriptOperator">:</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">agsType</span><span class="ActionScriptBracket/Brace">]</span>,
38          <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>45.5, <span class="ActionScriptOperator">-</span>122.7<span class="ActionScriptBracket/Brace">)</span>, 
39          <span class="ActionScriptDefault_Text">zoom</span><span class="ActionScriptOperator">:</span> 15
40        <span class="ActionScriptBracket/Brace">})</span>;
41        <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>;
42      <span class="ActionScriptBracket/Brace">}</span>
43      <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>
44        <span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">enableScrollWheelZoom</span><span class="ActionScriptBracket/Brace">()</span>;
45        <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>;
46        <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">NavigationControl</span><span class="ActionScriptBracket/Brace">())</span>;
47      <span class="ActionScriptBracket/Brace">}</span>
48    <span class="ActionScriptBracket/Brace">]]</span><span class="ActionScriptOperator">&gt;</span>
49  <span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>
50<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
51</html>