origo-map / multiselect-plugin

Multiselect plugin for Origo
MIT License
2 stars 10 forks source link

The WFS fallback does not respect `featureinfoLayer` #44

Open MattiasSp opened 2 months ago

MattiasSp commented 2 months ago

The featureinfoLayer config parameter on WMS, WMTS or AGS_TILE layers is not taken into account.

Example:

{
  "name": "registerenhet_yta",
  "source": "qgis_lm",
  "title": "Fastighetsytor",
  "group": "none",
  "visible": false,
  "queryable": true,
  "type": "WMS",
  "geometry": "geom",
  "attributes": [{ "name": "fastighet", "title": "Fastighetsbeteckning: " }]
  },
  {
  "name": "registerenheter_alla",
  "source": "qgis_lm",
  "title": "Fastighetsindelning",
  "group": "grupp1",
  "visible": true,
  "queryable": true,
  "featureinfoLayer": "registerenhet_yta",
  "style": "registerenheter_alla",
  "type": "WMS",
  "format": "image/png"
},

I am aware of the (undocumented) alternativeLayers parameter, which also solves problem described above, but I think the featureinfoLayer should be respected as well.

Perhaps any featureinfoLayer parameters on layers could be merged into the MultiSelect alternativeLayers config on initialization?