New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to load PNG32 on arcgis ImageServer that doesnt support it #8608
Comments
According to the WMS spec, OpenLayers uses a MIME type (default: params: {
FORMAT: 'image/png8'
} |
https://openlayers.org/en/latest/apidoc/module-ol_source_TileArcGISRest.html uses PNG32 as default, I'm just suggesting changing to png (or png8 like you say) as the default, in an attempt for better compatability with arcgis ImageServers |
Ah sorry, for some reason I thought you were takling about The reason why png32 is the default is because in many scenarios, layers from these servers are used as overlays, so transparency is important, which you don't get from png24. And with png8, palettes are applied, which can result in changing colors when a new image is loaded after panning. If you can think of documentation improvements that make it easier for users to find out why they don't get the expected result with servers that do not support png32, we'd appreciate a pull request. |
Ah.. interesting. I just stumbled into some map server stuff for work, so maybe "normal" users of this stuff would know better. Its a shame ?f=pjson doesn't return supported types. My only thought would be to add some small warning such as "be aware that not all servers support png32" or something in the docs for params. Edit: Ah, looks like MapServers return supportedImageFormatTypes with ?f=pjson, but ImageServers dont. How annoying. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Some ImageServer urls dont have png32 support, but we still try to load them when using an ImageServer url and ImageArcGISRest
Example (valid server):
https://jsfiddle.net/kpetw84h/1/
Example (server with only png/png8/png24 support)
https://jsfiddle.net/72ux4c1w/
Edit: I've just noticed that you can update this with params, but maybe we should use lowercase 'png' as the default, rather than PNG32 ?
The text was updated successfully, but these errors were encountered: