Browse Source

variables inutilisées

pull/34/head
b_b 7 months ago
parent
commit
1e9591b485
  1. 4
      inc/staticmap.php

4
inc/staticmap.php

@ -206,8 +206,6 @@ class staticMapGis
$doesNotFit = true;
while ($fitZoom > 1 && $doesNotFit) {
$center = $this->latLngToPixels($this->lat, $this->lon, $fitZoom);
$leftEdge = $center['x'] - $this->width / 2;
$topEdge = $center['y'] - $this->height / 2;
// check if the bounding rectangle fits within width/height
$sw = $this->latLngToPixels($bounds['minLat'], $bounds['minLon'], $fitZoom);
$ne = $this->latLngToPixels($bounds['maxLat'], $bounds['maxLon'], $fitZoom);
@ -269,9 +267,7 @@ class staticMapGis
$markerLon = $marker['lon'];
$markerUrl = $marker['url'] ?? '';
// clear variables from previous loops
$markerFilename = false;
$markerShadow = false;
$matches = false;
// marker perso ou par défaut ?
if ($markerUrl) {
include_spip('inc/distant');

Loading…
Cancel
Save