Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map / Avoid JSON parse error on context having layer with filter. Clear
queue on context load. Context layer can contain a JSON extension which could be formatted and XML formatting may add extra space which needs to be clean up for proper JSON string: ```xml <ows-context:Layer name="surval_parametre_point" group="/Human Activities" hidden="false" opacity="1" showLayerInfo="true"> <ows:Title>Surval données par paramètre (point)</ows:Title> <ows-context:Server service="urn:ogc:serviceType:WMS" version="1.3.0"> <ows-context:OnlineResource xlink:href="https://sextant.ifremer.fr/services/wms/environnement_marin"/> </ows-context:Server> <ows-context:Extension>{"uuid":"cf5048f6-5bbf-4e44-ba74-e6f429af51ea","label":"Surval données par paramètre (point)","filters":{"qParams":{"ft_LIEU_LIBELLE_s":{"type":"terms","values":{"001-P-003 - Zuydcoote filière":true}}}},"wfsUrl":"https://sextant.ifremer.fr/services/wfs/environnement_marin"} </ows-context:Extension> </ows-context:Layer> ``` Clear map queue on load - may have side effect when loading differents maps quickly. Avoid JS error if server layer is not defined (which should not be the case unless custom context with new layer types was created).
- Loading branch information