Skip to content

SaveLayer util does not save custom origin of a wms layer  #2916

@ndufrane

Description

@ndufrane

Description

When using SaveLayer util (https://github.com/geosolutions-it/MapStore2/blob/master/web/client/utils/LayersUtils.js#L363) the custom origin is not saved.

This leads to wrong tile position when using openlayer map with wms layer and custom origin.

Steps to reproduce

if you have a layer defined like this in the config.json

    "layers": [{
        "type": "wms",
         "url":["https://mybrugis.irisnet.be/geoserver/URBIS/wms"],
          "title": "UrbisFR",
          "name": "URBIS:urbisFR",
          "group": "background",
           "visibility": true,
            "format": "image/png8",
            "origin" : [140000.0,160000.0],
            "thumbURL" : "assets/img/urbis_color.PNG",
            "tiled" : true
        },{

SaveLayer skip the origin parameter

Expected Result

Save layer save the origin parameter

Current Result

Not saved

Other useful information (optional):

A PR will come soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions