class Map 方法 toMapFromStage 用于把屏幕坐标转换为地理坐标

public function toMapFromStage(stageX:Number, stageY:Number):MapPoint Converts the global stage coordinates to a map point.
Parameters  stageX:Number — The horizontal coordinate in global stage coordinates.     stageY:Number — The vertical coordinate in global stage coordinates.

Returns  MapPoint — MapPoint in map coordinates.

Example Easily get the geographic location of a mouse click. var
mapPoint:MapPoint = map.toMapFromStage( event.stageX, event.stageY );

Class GraphicUtil纯静态类,提供静态方法getGraphicsExtent getGraphicsExtent () method

public static function getGraphicsExtent(graphics:Array):Extent Returns the extent of all the graphics in the argument array. If the width and height of the resultant extent is 0, null is returned. Parameters  graphics:Array — the array of Graphic objects.

Returns  Extent — the unioned extent of all the input graphics.

Class ArcGISDynamicMapServiceLayer 属性 layerDefinitions可以用于条件过滤 layerDefinitions:Array  [read-write] Array of layer definition expressions that allows you to filter the features of individual layers in the exported map image. Definition expressions for layers that are currently not visible will be ignored by the server.
过滤的对象是数组类型的字符串String <esri:ArcGISDynamicMapServiceLayer id="dyn"         url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer">         <esri:layerDefinitions>             <!-- Layers in the order 0..x of the map service -->             <mx:Array>                  <mx:String></mx:String> <!-- Census block points表示图层1 -->                  <mx:String></mx:String> <!-- Census block groups    图层2 -->                  <mx:String></mx:String>  <!-- Counties              图层3 -->                  <mx:String><![CDATA[ AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP ]]></mx:String>  <!-- Coarse Counties图层4 -->                  <mx:String><![CDATA[ AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP ]]></mx:String>  <!-- Detailed Counties图层5 -->                  <mx:String><![CDATA[ AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP ]]></mx:String>  <!-- States图层6 -->              </mx:Array>         </esri:layerDefinitions> </esri:ArcGISDynamicMapServiceLayer> 子图层有6个,图层1.2.3不设置过滤条件 4.5.6设置过滤条件为 AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP 过滤得到的要素以默认的区域显示

<esri:Map id="map" units="{Units.FEET}"> 给Map对象设置units属性,可以把不同坐标系的地图叠合在一起

分类渲染  <esri:GraphicsLayer id="graphicsLayer">             <esri:renderer>                 <esri:ClassBreaksRenderer attribute="ranking">                     <esri:ClassBreakInfo maxValue="0.33" symbol="{smallSym}"/>                     <esri:ClassBreakInfo minValue="0.33" maxValue="0.67" symbol="{mediumSym}"/>                     <esri:ClassBreakInfo minValue="0.67" symbol="{largeSym}"/>                 </esri:ClassBreaksRenderer>             </esri:renderer>  </esri:GraphicsLayer>

var attributes:Object = { "ranking": Math.random() };

attributes : Object(Graphic类的attribute属性) Name-value pairs of fields and field values associated with the graphic

Graphic构造函数 public function Graphic(geometry:Geometry = null, symbol:Symbol = null, attributes:Object = null)

分类渲染ClassBreakRenderer A class break renderer symbolizes each graphic based on the value of some numeric attribute. 可以看出分类渲染的值范围是根据Object类的value来进行分类的,即上面Graphic类的attributes属性

toMapFromStage layerDefinitions ClassBreakRenderer的更多相关文章

  1. 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(十三)台风模块

    config.xml文件的配置如下: <widget label="台风" icon="assets/images/typhoon.png" config ...

  2. 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(三)显示地图坐标系模块

    config.xml文件的配置如下: <widget left="3" bottom="3" config="widgets/Coordinat ...

  3. 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(二)鹰眼模块

    讲解GIS功能模块实现之前,先大概说一下flexviewer的核心配置文件config.xml,系统额GIS功能widget菜单布局.系统的样式.地图资源等等都是在这里配置的,这里对flexviewe ...

  4. ArcGIS图层和要素的过滤显示

    ArcGIS可以设置动态地图服务(ArcGISDynamicMapServiceLayer)显示哪些图层,也可以设置每个图层根据某个属性字段的某些条件来进行过滤显示. 1.设置显示的图层 主要是通过A ...

  5. ArcGIS中的三种查询

    ArcGIS runtime SDK for WPF/Silverlight中的三种常用的查询:QueryTask.FindTask.IdentifyTask都是继承自ESRI.ArcGIS.Clie ...

  6. ArcGISDynamicMapServiceLayer 实现条件过滤

    <html>   <head>   <meta http-equiv="Content-Type" content="text/html; ...

  7. [转] ArcEngine 产生专题图

    小生原文 ArcEngine 产生专题图 ArcEngine提供多个着色对象用于产生专题图,可以使用标准着色方案,也可以自定义着色方案,ArcEngine提供8中标准着色方案. 一.SimpleRen ...

  8. ArcGIS Server JavaScript API 各命名空间的含义【转】

    1.esri 命名空间      所有的对象都是在 esri 命名空间下的,esri 有自己的属性和方法.      如 esri.version 返回当前 JavaScript API 的版本号.e ...

  9. AE分级渲染

    分级渲染classbreakrenderer位于carto类库中,进行分级渲染时,首先要将相应图层按照某一Field分级.可使用esrisystem类库中的iclassifyGEN类的classify ...

随机推荐

  1. flex 实例Demo

    Flex 页面布局 很方便 快捷 <!DOCTYPE html> <html lang="en"> <head> <meta charse ...

  2. springboot配置文件的所有属性

    转载:https://blog.csdn.net/qq_28929589/article/details/79439795 # spring boot application.properties配置 ...

  3. LeetCode905.按奇偶排序数组

    905.按奇偶排序数组 问题描述 给定一个非负整数数组 A,返回一个由 A 的所有偶数元素组成的数组,后面跟 A 的所有奇数元素. 你可以返回满足此条件的任何数组作为答案. 示例 输入:[3,1,2, ...

  4. LeetCode记录之21——Merge Two Sorted Lists

    算法和数据结构这东西,真的是需要常用常练.这道看似简单的链表合并题,难了我好几个小时,最后还是上网搜索了一种不错算法.后期复习完链表的知识我会将我自己的实现代理贴上. 这个算法巧就巧在用了递归的思想, ...

  5. docker大概理解

    #是啥# 轻量级的虚拟机,占用资源远小于一般意义上的虚拟机(例如:vmware,hyper-v) #特点# 启动快,体积小,开销少 #本质# Linux容器的一种封装 参考: 阮一峰博客 http:/ ...

  6. POJ_1456 Supermarket 【并查集/贪心】

    一.题面 POJ1456 二.分析 1.贪心策略:先保证从利润最大的开始判断,然后开一个标记时间是否能访问的数组,时间尽量从最大的时间开始选择,这样能够保证后面时间小的还能够卖. 2.并查集:并查集直 ...

  7. [八分之一的男人]POJ - 1743 后缀数组 height分组 带详解

    题意:求最长不可重叠的相同差值子串的长度 这道题算是拖了好几个月,现在花了点时间应该搞懂了不少,尝试分析一下 我们首先来解决一个退化的版本,求最长不可重叠的相同子串(差值为0) 比如\(aabaaba ...

  8. Q686 重复叠加字符串匹配

    给定两个字符串 A 和 B, 寻找重复叠加字符串A的最小次数,使得字符串B成为叠加后的字符串A的子串,如果不存在则返回 -1. 举个例子,A = "abcd",B = " ...

  9. Oracle DG --检查

    检查DG是否同步 01,  查看主备可切换状态 select switchover_status from v$database;select db_unique_name,open_mode,dat ...

  10. 学习javscript对象笔记(一)

    对象(Objects)  对象属性值可以是除undefined值之外的任意值 1.对象字面量 a.{}  b.new object(); 注意事项: 在对象字面量中,如果属性名是一个合法的javasc ...