PageRenderTime 13ms CodeModel.GetById 4ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/src/com/google/maps/extras/arcgislink/Feature.as

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 31 lines | 18 code | 2 blank | 11 comment | 2 complexity | bf18d3565b2b9d5845d893a13c2f6ed2 MD5 | raw file
 1/*
 2 * ArcGIS for Google Maps Flash API
 3 *
 4 * License http://www.apache.org/licenses/LICENSE-2.0
 5 */
 6 /**
 7 * @author nianwei at gmail dot com
 8 */ 
 9package com.google.maps.extras.arcgislink
10{
11  import com.google.maps.interfaces.IOverlay;
12  
13  public class Feature
14  {
15    public var attributes:*;
16    /**
17    * IOverlay[]
18    */ 
19    public var geometry:Array;
20    public function Feature(params:*=null, ovOpts:OverlayOptions=null, title:String=null)
21    {
22      if (params){
23        if (params.geometry){
24          geometry=ArcGISUtil.fromGeometryToOverlays(params.geometry, SpatialReferences.WGS84,ovOpts,title );
25        }
26        ArcGISUtil.augmentObject(params, this, false);
27      }
28    }
29
30  }
31}