Skip to content

Commit

Permalink
Uncomment lines about bbox coordinates in wms template
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenandres committed Mar 9, 2022
1 parent 71bee66 commit 56b625e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/themes/templates/wmslayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@
// set hidden vars
var name = $(this).find('td.wms-name').text();
var srs = $('#select-srs option:selected').text();
// var bbox = boundingboxes[name].find(box => box.crs === srs).extent;
var bbox = boundingboxes[name].find(box => box.crs === srs).extent;
$('#name').val(name);
$('#title').val($(this).find('td.wms-title').text());
$('#srs').val(srs);
// $('#bbox').val(bbox);
$('#bbox').val(bbox);
if($(this).find('td.wms-attribution').text() !== "undefined") {
$('#attribution').val($(this).find('td.wms-attribution').text());
}
Expand All @@ -114,9 +114,9 @@
$('#select-srs').change(function() {
var srs = $(this).find('option:selected').text();
var name = $('#name').val();
// var bbox = boundingboxes[name].find(box => box.crs === srs).extent;
var bbox = boundingboxes[name].find(box => box.crs === srs).extent;
$('#srs').val(srs);
// $('#bbox').val(bbox);
$('#bbox').val(bbox);
});
// format change
$('#select-format').change(function() {
Expand Down

0 comments on commit 56b625e

Please sign in to comment.