camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

In 2.1 metadata.queryLayers in an array #1158

Closed fredj closed 8 years ago

fredj commented 8 years ago

In 2.0, it was:

metadata: {
  wmsUrl: "https://wms.geo.admin.ch/",
  queryLayers: "ch.astra.ausnahmetransportrouten",
  ...
}

In 2.1, it is:

metadata: {
  wmsUrl: "https://wms.geo.admin.ch/",
  queryLayers: [
    "ch.astra.ausnahmetransportrouten"
  ],
  ...
}

This change causes an error in query:

angular.js:13550 TypeError: source.wmsSource.getParams(...).LAYERS.split is not a function
fredj commented 8 years ago

https://geomapfish-demo.camptocamp.net/2.0/wsgi/themes?version=2&background=background https://geomapfish-demo.camptocamp.net/2.1/wsgi/themes?version=2&background=background