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