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 ...
随机推荐
- C# 委托的三种调用示例(同步调用、异步调用、异步回调)
首先,通过代码定义一个委托和下面三个示例将要调用的方法: 代码如下: public delegate int AddHandler(int a,int b); public class 加法类 { p ...
- Jprofiler的安装部署及使用
本地与远程安装同版本的jprofiler.以本地Windows操作系统,远程AIX操作系统为例,详细介绍安装配置步骤.本次测试使用的均是jp6版本. 一.安装Jprofiler服务端 一 般情况下,J ...
- 【转】org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be res
如图所示: 看网上的解决方案,有的说是jstl的版本问题,1.0版本引入使用的时候加的uri不带有jsp路径的,1.2的带有/jsp路径,还有的说是依赖冲突的问题,最后尝试了都不行,只有一招能够行的通 ...
- day--39-MySQL的多表查询
多表查询一:表的基本介绍 可以参考:https://www.cnblogs.com/cdf-opensource-007/p/6517627.html 建立一个员工表信息表和一个部门表,每个员工都对应 ...
- 洛谷 P3233 [HNOI2014]世界树(虚树+dp)
题面 luogu 题解 数据范围已经告诉我们是虚树了,考虑如何在虚树上面\(dp\) 以下摘自hzwer博客: 构建虚树以后两遍dp处理出虚树上每个点最近的议事处 然后枚举虚树上每一条边,考虑其对两端 ...
- C# 通用区间类
public class Zone<T> where T : IComparable<T> { /// <summary> /// .ctor /// </s ...
- [转] Jenkins Pipeline插件十大最佳实践
[From] http://blog.didispace.com/jenkins-pipeline-top-10-action/ Jenkins Pipeline 插件对于 Jenkins 用户来说可 ...
- OPENROWSET read excel
由于64位系统已经不支持 oledb 4.0访问 xls 1. 未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序 去http://download.microsoft. ...
- Knime 连接 MYSQL 8
mysql8 腾空出世,话说mysql 跨过 6 7 版本直迈8,对这个数据库有跨时代的意思,引擎机制有个革命性的变革.决定尝试一把. 用大数据ETL工具Knime抽取数据.结果尴尬了: ERROR ...
- BaaS_后端即服务 RESTful
码云coding API https://open.coding.net/ Swagger 官网用VPN能流畅打开,但它自己的基于web的编辑器不行 用来设计RESTful API LeanCloud ...