PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 64 lines | 25 code | 10 blank | 29 comment | 1 complexity | c0b48348f111eb88bd2f6a1f6827e297 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 */ 
 9
10package com.google.maps.extras.arcgislink
11{
12  import com.google.maps.LatLngBounds;
13  
14  import flash.geom.Point;
15  
16  /**
17  * Represent the parameters needed to perform an exportMap operation on a map service.
18  * Most of the value will be set automatically in ArcGISMapOverlay.
19  */ 
20  public class ImageParameters
21  {
22    //public var bbox:*;
23    //public var bboxSR:int;
24    public var f:String='json';
25    /**
26    * See ArcGISConstants.IMAGE_FORMAT_*;
27    */ 
28    public var format:String;
29    public var height:int;
30    public var width:int;
31    public var imageSpatialReference:SpatialReference;
32    public var bounds:LatLngBounds;
33    public var dpi:int=96;
34    
35    /**
36     * Allows you to filter the features of individual layers in the exported map by specifying 
37     * definition expressions for those layers. Syntax: layerId1:layerDef1;layerId2:layerDef2 
38     * Example: 0:POP2000 > 1000000;5:AREA > 100000
39     * Normally you do not set this property directly. Instead, use Layer.definition for each layer.
40     */    
41    public var layerDefinitions:Array;
42        
43    /**  Normally you do not set this option directly. Instead, constrol visibility via Layer class
44    */
45    public var layerIds:Array;
46   
47    /**
48    * show|hide|include|exclude, or use ArcGISConstants.LAYER_OPTIONS_*.
49    *  Normally you do not set this option directly. Instead, constrol visibility via Layer class
50    */ 
51    public var layerOption:String;
52    
53    public var transparent:Boolean=true;
54    
55    public function ImageParameters(params:*=null)
56    {
57      if (params){
58        ArcGISUtil.augmentObject(params, this, true);
59      }
60      
61    }
62
63  }
64}