bootleaf icon indicating copy to clipboard operation
bootleaf copied to clipboard

Enable Cors Xampp

Open fedemap opened this issue 5 years ago • 6 comments

How to enable xampp header? I can't read the attributes of an external wms layer

fedemap avatar Oct 22 '19 15:10 fedemap

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.

slead avatar Oct 22 '19 21:10 slead

In a wms layer through identify how can I return only the name of the layer in the sidebar?

fedemap avatar Nov 02 '19 12:11 fedemap

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}
],

slead avatar Nov 02 '19 22:11 slead

Well, is it possible to call the layer name without getfeatureinfo? So clicking on the wms layer to have its name in the sidebar?

fedemap avatar Nov 03 '19 18:11 fedemap

In the getfeatureinfo where can I insert the proxy url of my php page?

fedemap avatar Nov 05 '19 07:11 fedemap

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/

slead avatar Nov 05 '19 21:11 slead