Select to view content in your preferred language

viewing two layers in the map.

1634
1
11-21-2012 08:43 AM
NadeemQazi
Regular Contributor
I have published two Map services  on ARCGIS server. however when i used following code: i can only see one not the other. how can i see both  .
<esri:Map id="myMap">

  <esri:ArcGISDynamicMapServiceLayer
   id="myLayer"
   url="http://localhost:6080/arcgis/rest/services/rasteronly_7nov/MapServer" />
  <esri:ArcGISDynamicMapServiceLayer
   id="myLayern"
   url="http://localhost:6080/arcgis/rest/services/Wexford_model_layers_withoutdensity_21nov/MapServer" />
 
 
 

</esri:Map>
Tags (2)
0 Kudos
1 Reply
IvanBespalov
Frequent Contributor
ArcGISDynamicMapServiceLayer # imageFormat
The output image type. Valid types are: png8 | png24 | png32 | jpg | gif. Only png and gif formats support transparency.

The default value is png8.

This property can be used as the source for data binding.


ArcGIS Server REST API # Export Map (Operation) # format
The format of the exported image. The default format is png.

Values: png | png8 | png24 | jpg | pdf | bmp | gif | svg | png32


1 - So when you add imageFormat="png32" to ArcGISDynamicMapServiceLayer tag you can see layers with the same transparency as they are in ArcMap [ATTACH=CONFIG]19475[/ATTACH]

2 - If layers in ArcMap are not transparent play with alpha property of ArcGISDynamicMapServiceLayer component.
0 Kudos