bootleaf
bootleaf copied to clipboard
Enable Cors Xampp
How to enable xampp header? I can't read the attributes of an external wms layer
This isn't my area of expertise, but I put a page at https://github.com/iag-geo/bootleaf/blob/master/reverseProxy.md which explains ways that I was able to get WMS to work using a reverse proxy.
I'm also not sure about xampp but if you're able to get it to work, feel free to submit a PR with the changes.
In a wms layer through identify how can I return only the name of the layer in the sidebar?
see the Identify section of the readme, and specify the name of the WMS layer in the outFields
parameter:
"outFields": [
{"name": "field_name", "alias": "Field Alias", "prefix": "$"},
{"name": "field alias", "thousands": true, "decimals": 2}
],
Well, is it possible to call the layer name without getfeatureinfo? So clicking on the wms layer to have its name in the sidebar?
In the getfeatureinfo where can I insert the proxy url of my php page?
The way I normally approach this is outlined in the reverse proxy document, in the final section:
"url": '/proxied_geoserver/wms',
So the WMS layer's URL is pointing at the proxy server version of the layer. There may be other ways to approach this - it's been a few years since I wrote that so I can't remember the reasoning behind it.
Note that you'll need to:
Access your Bootleaf app via port 8080 in order to send the above requests via the reverse-proxy, eg http://localhost:8080/bootleaf/