comparison client/src/components/map/layers.js @ 4525:9887061df57b

Use CQL filter to load the current survey difference.
author Raimund Renkert <raimund@renkert.org>
date Mon, 07 Oct 2019 14:22:35 +0200
parents 69166db6ba8a
children 02cf2b4be955
comparison
equal deleted inserted replaced
4524:7cca4aa9a04a 4525:9887061df57b
490 projection: "EPSG:3857", 490 projection: "EPSG:3857",
491 url: window.location.origin + "/api/internal/wms", 491 url: window.location.origin + "/api/internal/wms",
492 params: { 492 params: {
493 LAYERS: "sounding_differences", 493 LAYERS: "sounding_differences",
494 VERSION: "1.1.1", 494 VERSION: "1.1.1",
495 TILED: true 495 TILED: true,
496 CQL_FILTER: "id=" + store.state.fairwayprofile.currentDifference
496 }, 497 },
497 tileLoadFunction: function(tile, src) { 498 tileLoadFunction: function(tile, src) {
498 HTTP.get(src, { 499 HTTP.get(src, {
499 headers: { 500 headers: {
500 "X-Gemma-Auth": localStorage.getItem("token") 501 "X-Gemma-Auth": localStorage.getItem("token")