Select to view content in your preferred language

DynamicLayer ImageFormat

794
2
06-13-2017 10:10 AM
JoshBartz
Emerging Contributor

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
Honored Contributor

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
Emerging Contributor

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