jjuell,That is the nature of dynamicLayers - map service only draws the layers that are defined in dynamicLayers parameter.Please note:
- you must include all layers in dynamicLayers parameter that you want to *show* on the map
- do not include 'invisible' layers
- the order of layers in the dynamicLayers are important, as that is the order they will be drawn by the map service
- when a dynamicLayer refers to an existing layer with scale-visibility range, map service honors that scale-visibility
Since you are not modifying renderer for other layers, the definition of each layer by pointing its source to an existing layer should be pretty compact comparing to the defining a layer with renderer and/or labels...here is an example:[
{
"id": 101,
"source": {
"type": "mapLayer",
"mapLayerId": 1
},
"drawingInfo": { "renderer": { ... }, ... }
},
{
"id": 102,
"source": {
"type": "mapLayer",
"mapLayerId": 2
}
},
{
"id": 103,
"source": {
"type": "mapLayer",
"mapLayerId": 3
}
},
....
]