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

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 83 lines | 69 code | 13 blank | 1 comment | 0 complexity | a013ddcb00c6e4acd934db1845132122 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>LayerQuery3D.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="1.0" encoding="utf-8"?&gt;</span>
11<span class="MXMLComponent_Tag">&lt;mx:Application</span><span class="MXMLDefault_Text"> xmlns:mx="</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">"
12                xmlns:maps="</span><span class="MXMLString">com.google.maps.*</span><span class="MXMLDefault_Text">"
13                layout="</span><span class="MXMLString">absolute</span><span class="MXMLDefault_Text">"
14                width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"
15                height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"
16                viewSourceURL="</span><span class="MXMLString">srcview/index.html</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
17  <span class="MXMLComponent_Tag">&lt;mx:Panel</span><span class="MXMLDefault_Text"> title="</span><span class="MXMLString">Census Data from ArcGIS Server Service: After load you should see NC county polygons, mouse over a county for name, click for data</span><span class="MXMLDefault_Text">"
18            width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"
19            height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
20    <span class="MXMLComponent_Tag">&lt;maps:Map3D</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">map</span><span class="MXMLDefault_Text">"
21                sensor="</span><span class="MXMLString">false</span><span class="MXMLDefault_Text">"
22                mapevent_mapready="</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">"
23                mapevent_mappreinitialize="</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">"
24                width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"
25                height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"
26                key="</span><span class="MXMLString">ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
27  <span class="MXMLComponent_Tag">&lt;/mx:Panel&gt;</span>
28
29  <span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
30    &lt;![CDATA[
31      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ListEvent</span>;
32      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">controls</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Alert</span>;
33
34      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptOperator">*</span>;
35      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">geom</span><span class="ActionScriptOperator">.</span><span class="ActionScriptOperator">*</span>;
36      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">controls</span><span class="ActionScriptOperator">.</span><span class="ActionScriptOperator">*</span>;
37      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">overlays</span><span class="ActionScriptOperator">.</span><span class="ActionScriptOperator">*</span>;
38      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">interfaces</span><span class="ActionScriptOperator">.</span><span class="ActionScriptOperator">*</span>;
39
40      <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">extras</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">arcgislink</span><span class="ActionScriptOperator">.</span><span class="ActionScriptOperator">*</span>;
41
42
43      <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">svcUrl</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"</span>;
44      <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">countyLayer</span>:<span class="ActionScriptDefault_Text">Layer</span>;
45      <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">hStyle</span>:<span class="ActionScriptDefault_Text">OverlayOptions</span><span class="ActionScriptOperator">=</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">OverlayOptions</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">polygon</span>: <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">PolygonOptions</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">fillStyle</span>: <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">color</span>: 0xffff00<span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">alpha</span>: 0.35<span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">strokeStyle</span>: <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">color</span>: 0xFF0000<span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">thickness</span>: 4<span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span>;
46      <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">style</span>:<span class="ActionScriptDefault_Text">OverlayOptions</span><span class="ActionScriptOperator">=</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">OverlayOptions</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">polygon</span>: <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">PolygonOptions</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">fillStyle</span>: <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">color</span>: 0x888888<span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">alpha</span>: 0.35<span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">strokeStyle</span>: <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">color</span>: 0x0000ff<span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">thickness</span>: 1<span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span>;
47
48      <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="ActionScriptDefault_Text">MapEvent</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
49        <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</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="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">viewMode</span>: <span class="ActionScriptDefault_Text">View</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">VIEWMODE_PERSPECTIVE</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">attitude</span>: <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Attitude</span><span class="ActionScriptBracket/Brace">(</span>20<span class="ActionScriptOperator">,</span> 30<span class="ActionScriptOperator">,</span> 0<span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span>;
50      <span class="ActionScriptBracket/Brace">}</span>
51
52      <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="ActionScriptDefault_Text">Event</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
53        <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</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>35.7<span class="ActionScriptOperator">,</span> <span class="ActionScriptOperator">-</span>79.5<span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">,</span> 7<span class="ActionScriptBracket/Brace">)</span>;
54        <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">addControl</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">google</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">maps</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">controls</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">MapTypeControl</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span>;
55        <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</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><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span>;
56        <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">enableScrollWheelZoom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>;
57        <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">enableContinuousZoom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>;
58        <span class="ActionScriptDefault_Text">countyLayer</span><span class="ActionScriptOperator">=</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Layer</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">svcUrl</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptString">'/3'</span><span class="ActionScriptBracket/Brace">)</span>;
59        <span class="ActionScriptDefault_Text">countyLayer</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">addEventListener</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ServiceEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOAD</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">initFunctionality</span><span class="ActionScriptBracket/Brace">)</span>;
60
61      <span class="ActionScriptBracket/Brace">}</span>
62
63      <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">initFunctionality</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">evt</span>:<span class="ActionScriptDefault_Text">Event</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
64        <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">params</span>:<span class="ActionScriptDefault_Text">QueryParameters</span><span class="ActionScriptOperator">=</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">QueryParameters</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">returnGeometry</span>: <span class="ActionScriptReserved">true</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">where</span>: <span class="ActionScriptString">"STATE_NAME = 'North Carolina'"</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">outFields</span>: <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">"NAME"</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"POP2000"</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"POP2007"</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"POP00_SQMI"</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"POP07_SQMI"</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span>;
65        <span class="ActionScriptDefault_Text">countyLayer</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">query</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">params</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">processResultSet</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">handleError</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">style</span><span class="ActionScriptBracket/Brace">)</span>;
66      <span class="ActionScriptBracket/Brace">}</span>
67
68      <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">processResultSet</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">rs</span>:<span class="ActionScriptDefault_Text">ResultSet</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
69        <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">fs</span>:<span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptOperator">=</span><span class="ActionScriptDefault_Text">rs</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">features</span>;
70        <span class="ActionScriptDefault_Text">fs</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">sort</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptfunction">function</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">A</span>:<span class="ActionScriptOperator">*</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">B</span>:<span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptBracket/Brace">{</span>
71            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">A</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">attributes</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">'NAME'</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">localeCompare</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">B</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">attributes</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">'NAME'</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptBracket/Brace">)</span>;
72          <span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptOperator">,</span> 1<span class="ActionScriptBracket/Brace">)</span>;
73
74        <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span>:<span class="ActionScriptDefault_Text">int</span><span class="ActionScriptOperator">=</span>0<span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">c</span>:<span class="ActionScriptDefault_Text">int</span><span class="ActionScriptOperator">=</span><span class="ActionScriptDefault_Text">fs</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">c</span>; <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
75          <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">ovs</span>:<span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptOperator">=</span><span class="ActionScriptDefault_Text">createGPolys</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">fs</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">rs</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">spatialReference</span><span class="ActionScriptBracket/Brace">)</span>;
76          <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">j</span>:<span class="ActionScriptDefault_Text">int</span><span class="ActionScriptOperator">=</span>0; <span class="ActionScriptDefault_Text">j</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">ovs</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">j</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
77            <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">addOverlay</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ovs</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">j</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptBracket/Brace">)</span>;
78          <span class="ActionScriptBracket/Brace">}</span>
79        <span class="ActionScriptBracket/Brace">}</span>
80      <span class="ActionScriptBracket/Brace">}</span>
81
82      <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">createGPolys</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">feat</span>:<span class="ActionScriptDefault_Text">Feature</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">sr</span>:<span class="ActionScriptDefault_Text">SpatialReference</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptBracket/Brace">{</span>
83        <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">a</span>:<span class="ActionScriptOperator">*</span>=<span class="ActionScriptOperator">f</span>