Skip to content

Commit

Permalink
Update WMSRequest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoviscomi authored and github-actions[bot] committed Jul 30, 2023
1 parent 69f1496 commit 8db0349
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 8db0349

Please sign in to comment.