geosolutions-it/crop-information-portal

Fix Geonetwork integration

Opened this issue · 1 comments

Once the user clicks on a link in the metadata Interactive Map of any geonetwork resource mapstore remains stuck on the progress bar.

This is due to a javascript error:

  • The Mapstore addLayerPlugin must be updated
  • the call to the addMSLayer function in addWMSLayer must be changed passing all the information as a single parameter

There is still a problem with the layer title. When you open the WMS resource (not layer) MapStore tries to use the title instead of the layer name as layers option in wms requests. When the metadata instead contains a WMS layer, the layer added to mapstore uses the layer name both for title and name (it should be use the title as title and the name as name