我的github

unique value renderer:检索

UniqueValueRenderer唯一值渲染,是指某一图层中某一字段下的不同值的要素显示不同颜色,以此来区分,可以通过UniqueValueRender唯一值

L.esri.DynamicMapLayer:https://esri.github.io/esri-leaflet/api-reference/layers/dynamic-map-layer.html

或许dynamicmaplayer就是exportmap里的

https://esri.github.io/esri-leaflet/api-reference/layers/dynamic-map-layer.html#options

关于颜色:https://blog.csdn.net/nmj2008/article/details/115176970(ArcGIS API For JavaScript之DynamicLayer)(esri-leaflet之DynamicLayer更准确一些)

ArcGIS API for JS之GenerateRenderer根据属性生成分类渲染器:https://blog.csdn.net/nmj2008/article/details/115197446

[{
 "id":10,
 "definitionExpression": "OBJECTID<10000",
 "source": {
    "type": "mapLayer",
    "mapLayerId": 0
  },
 "drawingInfo":
 {
    "renderer":
   {
     "type":"simple",
     "symbol":
     {
      "type": "esriSMS",
      "style": "esriSMSCircle",
      "color": [255,0,0,255],
      "size":1
     },
   "label":"TaxLots",
   "description":""
   },
  "transparency":60
},
},
{
 "id":10,
 "definitionExpression": "OBJECTID>10000",
 "source": {
    "type": "mapLayer",
    "mapLayerId": 0
  },
 "drawingInfo":
 {
    "renderer":
   {
     "type":"simple",
     "symbol":
     {
      "type": "esriSMS",
      "style": "esriSMSCircle",
      "color": [0,255,0,255],
      "size":1
     },
   "label":"TaxLots",
   "description":""
   },
  "transparency":60
},
}
]

 

>>更多关于动态图层的介绍:

ArcGIS API for JavaScript开发-动态图层全面解析三:http://zhihu.geoscene.cn/article/2833

posted on 2021-07-19 13:41  XiaoNiuFeiTian  阅读(463)  评论(0编辑  收藏  举报