Skip to content

Commit

Permalink
Merge pull request #3818 from 3liz/backport-3810-to-release_3_6
Browse files Browse the repository at this point in the history
[Backport release_3_6] Update WMSRequest.php
  • Loading branch information
laurentj authored Jul 30, 2023
2 parents 5f08412 + 8db0349 commit c7be86b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lizmap/modules/lizmap/lib/Request/WMSRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -798,10 +798,10 @@ protected function gfiGmlToHtml($gmldata, $configLayer)
// Create HTML response
$layerTitle = $configLayer->title;

$HTMLResponse = "<h4>${layerTitle}</h4><div class='lizmapPopupDiv'><table class='lizmapPopupTable'>";
$HTMLResponse = "<h4>{$layerTitle}</h4><div class='lizmapPopupDiv'><table class='lizmapPopupTable'>";

foreach ($xmlFeature->children() as $key => $value) {
$HTMLResponse .= "<tr><td>${key}&nbsp;:&nbsp;</td><td>${value}</td></tr>";
$HTMLResponse .= "<tr><td>{$key}&nbsp;:&nbsp;</td><td>{$value}</td></tr>";
}
$HTMLResponse .= '</table></div>';

Expand Down Expand Up @@ -967,7 +967,7 @@ protected function getMetaTileData($params, $metatileSize)
$xmax = $bbox2 + $xFactor * $width + $metatileBuffer * $width / $param_width;
$ymax = $bbox3 + $yFactor * $height + $metatileBuffer * $height / $param_height;
// Replace request bbox by metatile bbox
$params['bbox'] = "${xmin},${ymin},${xmax},${ymax}";
$params['bbox'] = "{$xmin},{$ymin},{$xmax},{$ymax}";

// Keep original param value
$originalParams = array('width' => $param_width, 'height' => $param_height);
Expand Down

0 comments on commit c7be86b

Please sign in to comment.