IDynamicLayerDescription

通过动态图层实现修改渲染方式。。那么如何把一个图层变为动态图层呢?

https://developers.arcgis.com/rest/services-reference/dynamic-layer-table.htm

 

 

动态图层是一个自定义的图层,当我们定义了这个动态图层之后,他就和一个普通的图层一样,需要添加到一个地图中,然后我们就可以在上面绘制符号和图形等,要使用一个动态图层,按下面的步骤就可以完成:

https://blog.youkuaiyun.com/weixin_34413802/article/details/90089657

由此可见,可以通过IDynamicLayerDescription修改数据源,或者修改DrawingDescription。。

Description

A dynamic layer / table resource represents a single layer / table of a map service published by ArcGIS Server or of a registered workspace. This resource is supported only when the map service supports dynamic layers, as indicated by supportsDynamicLayers on the map service resource.

For a dynamic layer / table based on an existing map service layer, this resource returns updated information based on any changes to the data. For example, consider the case of a time-aware layer in a map service. There are a couple of options to retrieve updated temporal extents—pass the returnUpdates parameter to static layer resource or request the layer via dynamicLayer resource, which would return the most current information rather than returning the cached information.

http://localhost:6080/arcgis/rest/services/wuhan/wuhan/MapServer/dynamicLayer?layer=%7B%22id%22%3A101%2C%22definitionExpression%22%3A%22SystemID%20like%20%27wuhan%25%27%22%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A3%7D%7D

http://localhost:6080/arcgis/sdk/rest/index.html#//02ss00000005000000

>>应用例子:通过IDynamicLayerDescription修改显示样式和数据源:当然这只是暂时的,一次请求一次生成

但是这很适合临时性的或者说是实时性的工作。。无论通过http:.../dynamiclayer?layer=.....renderer...还是通过后端.....所做的修改均只是临时的。

https://blog.youkuaiyun.com/nmj2008/article/details/114971948

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值