The hard coded format in the code seems to be png. See: https://github.com/AnalyticalGraphicsInc/cesium/blob/1.59/Source/Scene/ArcGisMapServerImageryProvider.js#L265
If I add format to the resource queryParameters it is ignored due to the above code. I would have expected you could override the 'default' queryparam values with queryparams in resource?
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
Try changing the format used here: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=ArcGIS%20MapServer.html
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
The png data for this MapServer (non-public, or I'd link it) is not valid, but the png32 data works perfectly.
4. The Cesium version you're using, your operating system and browser.
1.59
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/dmP6FRtGoMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cesium-dev/2893cec8-bb43-4502-ac8e-7d150efcae10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var viewer = new Cesium.Viewer('cesiumContainer');
var resource = new Cesium.Resource({ url: 'https://example.com', queryParameters: {'key': 'value'}});
var derivedResource = resource.getDerivedResource({ url: 'https://example.com?key=newValue', preserveQueryParameters: true});
console.log(resource.url);//https://example.com?key=valueconsole.log(derivedResource.url);//https://example.com?key=newValue&key=value
var viewer = new Cesium.Viewer('cesiumContainer');
var resource = new Cesium.Resource({ url: 'https://example.com', queryParameters: {'key': 'value'}});
var derivedResource = resource.getDerivedResource({ url: 'https://example.com', queryParameters: {'key': 'newValue'}, preserveQueryParameters: true});
console.log(resource.url);//https://example.com?key=valueconsole.log(derivedResource.url);//https://example.com?key=newValue
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.