ArcGIS API for Javascript 4.x叫MapImageLayer
https://developers.arcgis.com/javascript/latest/sample-code/layers-dynamicmaplayer/
ArcGIS API for Javascript 3.x叫DynamicLayers
https://developers.arcgis.com/javascript/3/jssamples/map_dynamic.html(Sample)
https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html(dynamicLayer API)
1. Add Two Dynamic Layers(添加两个动态图层)
Description
Add two dynamic map services to a map and use the setInfoTemplates method to specify what information should be shown when a feature from a map service is clicked.
向地图添加两个动态地图服务,并使用setInfoTemplates方法指定单击地图服务中的某个功能时应显示哪些信息。
dynamicLayer和一般的Layer的区别是?好像现在的mapserver都是dynamiclayer了。。不用设置。。以前的mapserver好像是需要设置是否可以动态的更改。而现在不用。但是这种设置是临时的,不会修改服务器端的默认配置 [Wrong!也是需要设置的]试验: