MapStore2 icon indicating copy to clipboard operation
MapStore2 copied to clipboard

Layer added to a context don't use mapInfoConfiguration

Open jusabatier opened this issue 3 years ago • 0 comments

Description

The layers added after open a context, via catalog or URL parameters doesn't use mapInfoConfiguration/infoFormat defined in configuration.

Those layers use the TEXT format, instead of using the default one defined in context's mapInfoConfiguration/infoFormat.

In our case we want them to use HTML, so we set :

"mapInfoConfiguration":{
    "showEmptyMessageGFI":false,
    "infoFormat":"text/html"
}

in our context's json.

How to reproduce

=> quick example : https://geoportail.lepuyenvelay.fr/mapstore/#/context/Test?addLayers=website:points_de_vente_libelle;gpvgs&mapInfo=website:points_de_vente_libelle&mapInfoFilter=%22id=15%22 => Other method (manually)

  • Open a context with above configuration in it JSON
  • Add a layer via the TOC
  • Try to click on a feature

Expected Result Use the HTML format to display GFI

Current Result It use the TEXT one

  • [x] Not browser related

jusabatier avatar Oct 14 '22 07:10 jusabatier