@@ -617,8 +617,9 @@ |
||
617 | 617 | . "%2C" . $bbox ['maxlon']; |
618 | 618 | $imgUrl .= "&dcl=1"; |
619 | 619 | } |
620 | - if(strpos($imgUrl, "?") === false) |
|
621 | - $imgUrl .= "?"; |
|
620 | + if(strpos($imgUrl, "?") === false) { |
|
621 | + $imgUrl .= "?"; |
|
622 | + } |
|
622 | 623 | |
623 | 624 | //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . "," |
624 | 625 | // . str_replace ( "px", "", $gmap ['height'] ); |
@@ -350,14 +350,18 @@ discard block |
||
350 | 350 | public function makeMap(): void { |
351 | 351 | $this->initCoords(); |
352 | 352 | $this->createBaseMap(); |
353 | - if(!empty ($this->markers)) |
|
354 | - $this->placeMarkers(); |
|
355 | - if(file_exists($this->kmlFileName)) |
|
356 | - $this->drawKML(); |
|
357 | - if(file_exists($this->gpxFileName)) |
|
358 | - $this->drawGPX(); |
|
359 | - if(file_exists($this->geojsonFileName)) |
|
360 | - $this->drawGeojson(); |
|
353 | + if(!empty ($this->markers)) { |
|
354 | + $this->placeMarkers(); |
|
355 | + } |
|
356 | + if(file_exists($this->kmlFileName)) { |
|
357 | + $this->drawKML(); |
|
358 | + } |
|
359 | + if(file_exists($this->gpxFileName)) { |
|
360 | + $this->drawGPX(); |
|
361 | + } |
|
362 | + if(file_exists($this->geojsonFileName)) { |
|
363 | + $this->drawGeojson(); |
|
364 | + } |
|
361 | 365 | |
362 | 366 | $this->drawCopyright(); |
363 | 367 | } |
@@ -447,8 +451,9 @@ discard block |
||
447 | 451 | * @param string $url |
448 | 452 | */ |
449 | 453 | public function fetchTile($url) { |
450 | - if($this->useTileCache && ($cached = $this->checkTileCache($url))) |
|
451 | - return $cached; |
|
454 | + if($this->useTileCache && ($cached = $this->checkTileCache($url))) { |
|
455 | + return $cached; |
|
456 | + } |
|
452 | 457 | |
453 | 458 | $_UA = 'Mozilla/4.0 (compatible; DokuWikiSpatial HTTP Client; ' . PHP_OS . ')'; |
454 | 459 | if(function_exists("curl_init")) { |