DynamicLayer ImageFormat

610
2
06-13-2017 10:10 AM
JoshBartz
New Contributor II

Is there a way to set the image format for an ArcGISDynamicMapServiceLayer? In iOS I'm able to call

dynamicLayer?.imageFormat = .PNG32

Is there an equivalent call in Android? I define transparency on the layer service, but it's not being honored because the SDK isn't retrieving png32s. I can call `setOpacity`, but that also fades out labels, and I lose the ability to dynamically control the transparency.

Thanks!

0 Kudos
2 Replies
AlexanderNohe1
Occasional Contributor III

Are you using 10.2.9?  I am unable to find this in the 10.2.9 version of the Android SDK (yet).

If you are using runtime version 100, use ArcGISMapImageLayer| arcgis-android  ArcGISMapImageLayer.setImageFormat(ArcGISMapImageLayer.ImageFormat.PNG32);

ArcGISMapImageLayer.ImageFormat| arcgis-android 

JoshBartz
New Contributor II

Hi ANohe-esristaff‌,

Yes, I'm using 10.2.9. 10.2.9 has ArcGISImageServiceLayer, which also has setImageFormat, but ArcGISDynamicMapServiceLayer doesn't, even though the iOS SDK does.

Josh