Sub-layer Transparency in Dynamic Layer

2453
4
Jump to solution
09-24-2013 05:04 AM
MaisarahAbdulHalim
New Contributor III
Hi, I need to have one of my dynamic sublayers transparent and what I did was as below (id="1"), but nothing happened. What is the correct way to do it?



 <layer type="dynamic" label="State" imageformat="png8" url="http://localhost:6080/arcgis/rest/services/State/Test/MapServer" visible="true">                 <sublayer id="2" popupconfig="popups/PopUp_11.xml"/>    <sublayer id="1" alpha="0.20"/>                  <sublayer id="6" popupconfig="popups/PopUp_21.xml"/>                 <sublayer id="5" popupconfig="popups/PopUp_31.xml"/>                 <sublayer id="4" popupconfig="popups/PopUp_41.xml"/>                 <sublayer id="3" popupconfig="popups/PopUp_51.xml"/>                 <sublayer id="1" popupconfig="popups/PopUp_61.xml"/>                 <sublayer id="0" popupconfig="popups/PopUp_71.xml"/>             </layer>



Thanks in advance! 🙂

Maisarah
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Maisarah,

   When you set a sublayers transparency in Arcmap then that should come through in your map service when using imageFormat="png32", (also covered in the docs).

https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/ArcGISDynamicMapServiceLayer...

Here is the links to the API docs for LayerDrawingOptions:

https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/supportClasses/LayerDrawingO...

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Maisarah,

   There is NO support for doing this in the config.xml. It has to be done at the server level before publishing the map service. If the map service server you are using a 10.1 or higher server than you can use LayerDrawingOptions.
0 Kudos
MaisarahAbdulHalim
New Contributor III
Thanks for your reply Robert..

I'm using a 10.1 Server, any links on the LayerDrawingOptions i can read about to do it?

And also, if the layer transparency was initially specified in ArcMap before publishing to server, can the transparency of my dynamic sub-layer be seen?


Regards

Maisarah
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Maisarah,

   When you set a sublayers transparency in Arcmap then that should come through in your map service when using imageFormat="png32", (also covered in the docs).

https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/ArcGISDynamicMapServiceLayer...

Here is the links to the API docs for LayerDrawingOptions:

https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/supportClasses/LayerDrawingO...
0 Kudos
MaisarahAbdulHalim
New Contributor III
Thanks a lot Robert..
0 Kudos