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 by post parameters #61

Open
JePedrosa opened this issue May 7, 2019 · 0 comments
Open

WMs by post parameters #61

JePedrosa opened this issue May 7, 2019 · 0 comments

Comments

@JePedrosa
Copy link

Hello,

I am currently using leaflet 1.3.1 and I am loading the WMS in a single image, but when I try to go through the sld_body a style that I have had to generate dynamically tells me that the URL is too large, would there be any way to pass the parameters by the POST method instead of the GET method? I want the WMS images to geoserver. Here is an example:

            url = url_geoserver + "/wms/reflect?sld_body=" + sld_body;

            var capa_wms = L.WMS.source(url, {
                format: 'image/gif',
                version: '1.3.0',
                maxZoom: 30,
                transparent: true,
                cql_filter: valor_filtrado,
                zIndex: zIndex_elemento,
                env: env,
                test: val,
                tiled: false,
            });

            capa_wms.getLayer(nombre_capa).addTo(map);

Thank you

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