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. Win7 如何阻止程序联网

    https://jingyan.baidu.com/article/9113f81b03d4e12b3214c7c3.html

  2. ajax beforeSend中无效果

    asnyc:false 与beforesend 同时使用 无效果

  3. 2B - Amy

    数据范围是18位,把每一位加起来的和最多9*18 = 162 所以只需考虑n-162 - n的数即可,暴力解决 #include <iostream> using namespace st ...

  4. mysql数据库分库分表shardingjdbc

    分库分表理解 分库分表应用于互联网的两个场景;大量数据和高并发,通常策略有两种:垂直分库,水平拆分 垂直拆分:是根据业务将一个库拆分为多个库,将一个表拆分为多个表,例如:将不常用的字段和经常访问的字段 ...

  5. POJ2449 Remmarguts' Date A*算法

    题意是让求从st的ed第k短路... 考虑A*算法:先把终点到每个点最短路跑出来(注意要建反图),当做估价函数h(u),然后跑A* 每次取出总代价最小的,即g(u)+h(u)最小的进行扩展,注意如果u ...

  6. Celery 大量任务 分发

    Celery是由Python开发的一个简单.灵活.可靠的处理大量任务的分发系统,它不仅支持实时处理也支持任务调度. user:用户程序,用于告知celery去执行一个任务. broker: 存放任务( ...

  7. bzoj4034 树上操作 树链剖分+线段树

    题目传送门 题目大意: 有一棵点数为 N 的树,以点 1 为根,且树点有权.然后有 M 个操作,分为三种: 操作 1 :把某个节点 x 的点权增加 a . 操作 2 :把某个节点 x 为根的子树中所有 ...

  8. Python入门书的读书笔记

    入门书地址 三引号 (""" 或 ''') 来指定多行字符串字符串是不可变的输出小数点后三位 print('{0:.3f}'.format(1 / 3))输出字符串长度为 ...

  9. win10更新后电脑没声音问题

    2018-07-18 问题描述: win10系统更新之后,发现电脑突然没声音了 解决方案: 找到了一个软件,测试超级好用,下载链接 链接:https://pan.baidu.com/s/1iKTHp7 ...

  10. python - 约瑟夫问题

    在罗马人占领乔塔帕特后,39 个犹太人与约瑟夫及他的朋友躲到一个洞中.39个犹太人决定宁愿死也不要被敌人俘虏,商定一种特殊的方式自杀,41个人排成一个圆圈,由第1个人开始报数,每报到第3人该人就必须自 ...