Skip to content
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

WMS option transparent must be TRUE or FALSE #230

Open
macwe opened this issue Nov 14, 2023 · 0 comments
Open

WMS option transparent must be TRUE or FALSE #230

macwe opened this issue Nov 14, 2023 · 0 comments

Comments

@macwe
Copy link

macwe commented Nov 14, 2023

In v-leaflet, an org.vaadin.addon.leaflet.LWmsLayer has a method for setting the transparent option to a Boolean value. This results in a &transparent=true or &transparent=false string added to the URL of the WMS service.
Unfortunately this won't work with all WMS services, since the WMS 1.3.0 specification, ch. 6.8.1 states: »Parameter names shall not be case sensitive, but parameter values shall be.« And ch. 7.3.3.9 states: »TRANSPARENT can take on two values, "TRUE" or "FALSE".« Cf. OpenGIS Web Map Server Implementation Specification, OGC 06-042. For example this does not work with https://services.datafordeler.dk/Dkskaermkort/topo_skaermkort/1.0.0/wms.

This behaviour is observed in v-leaflet-1.0.3 with Vaadin 7.7.4.

P.S. A workaround is to explicitly set the transparent option via setCustomOption("transparent", "FALSE").

(This issue was moved from vaadin/directory#60)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant