toMapFromStage layerDefinitions ClassBreakRenderer
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的更多相关文章
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(十三)台风模块
config.xml文件的配置如下: <widget label="台风" icon="assets/images/typhoon.png" config ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(三)显示地图坐标系模块
config.xml文件的配置如下: <widget left="3" bottom="3" config="widgets/Coordinat ...
- 天津政府应急系统之GIS一张图(arcgis api for flex)讲解(二)鹰眼模块
讲解GIS功能模块实现之前,先大概说一下flexviewer的核心配置文件config.xml,系统额GIS功能widget菜单布局.系统的样式.地图资源等等都是在这里配置的,这里对flexviewe ...
- ArcGIS图层和要素的过滤显示
ArcGIS可以设置动态地图服务(ArcGISDynamicMapServiceLayer)显示哪些图层,也可以设置每个图层根据某个属性字段的某些条件来进行过滤显示. 1.设置显示的图层 主要是通过A ...
- ArcGIS中的三种查询
ArcGIS runtime SDK for WPF/Silverlight中的三种常用的查询:QueryTask.FindTask.IdentifyTask都是继承自ESRI.ArcGIS.Clie ...
- ArcGISDynamicMapServiceLayer 实现条件过滤
<html> <head> <meta http-equiv="Content-Type" content="text/html; ...
- [转] ArcEngine 产生专题图
小生原文 ArcEngine 产生专题图 ArcEngine提供多个着色对象用于产生专题图,可以使用标准着色方案,也可以自定义着色方案,ArcEngine提供8中标准着色方案. 一.SimpleRen ...
- ArcGIS Server JavaScript API 各命名空间的含义【转】
1.esri 命名空间 所有的对象都是在 esri 命名空间下的,esri 有自己的属性和方法. 如 esri.version 返回当前 JavaScript API 的版本号.e ...
- AE分级渲染
分级渲染classbreakrenderer位于carto类库中,进行分级渲染时,首先要将相应图层按照某一Field分级.可使用esrisystem类库中的iclassifyGEN类的classify ...
随机推荐
- 一个数字从后向前输入每一位数字,Camel和Pascal命名规范,IsValid()
int num = int.Parse(Console.ReadLine()); ; ) { n = num % ; num /= ; Console.WriteLine(n); } Camel和Pa ...
- 江西理工大学南昌校区排名赛 D: 单身狗的物理游戏
题目描述 萌樱花是一只单身狗. 萌樱花今天决定做一道理综物理题: 如图,两固定的绝缘斜面倾角均为θ,上沿相连.两细金属棒ab(仅标出a端)和cd(仅标出c端)长度均为L,质量分别为2m和m:用两根不可 ...
- BZOJ - 3757 树上莫队解决离线路径问题 & 学习心得
题意:给你一棵树,求u,v最短路径的XXX(本题是统计权值种类) 今天课上摸鱼学了一种有意思的处理路径方式(其实是链式块状树翻车了看别的),据说实际运行跑的比XX记者还快 大概就是像序列莫队那样 首先 ...
- Python——爬取瓜子二手车
# coding:utf8 # author:Jery # datetime:2019/5/1 5:16 # software:PyCharm # function:爬取瓜子二手车 import re ...
- Linux-Xshell5
Linux-Xshell5 1.下载 2.安装 3.新建会话(连接) 点击新建 需要知道要连接的 IP, 查看命令 ifconfig 配置 名称可以自己命名,主机写要连接的 IP,其他的不能改 输 ...
- oracle 错误实例分析(ORA-01126)
问题描述 SQL> shutdown immediate ORA-01109: database not open Database dismounted. ORACLE instance sh ...
- vue中promise的使用
vue中promise的使用 promise是处理异步的利器,在之前的文章<ES6之promise>中,我详细介绍了promise的使用, 在文章<js动画实现&&回 ...
- 最近准备把安卓和java的知识再回顾一遍,顺便会写博客上!千变万化还都是源于基础,打扎实基础
最近准备把安卓和java的知识再回顾一遍,顺便会写博客上!千变万化还都是源于基础,打扎实基础,加油吧 距离去北京还有23天
- Best HTTP
http://blog.csdn.net/u012322710/article/details/52860747 Best HTTP (Pro) 这是一款很多公司都在用的网页插件,感觉确实不错,分P ...
- MYSQL系列-Mysql存储引擎选择
MYSQL系列-Mysql存储引擎选择 //查看当前数据库支持的存储引擎 show engines \G; 创建表的时候可以通过engine=MyISAM指定存储引擎 MyISAM: .MYISAM不 ...