@@ -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'] ); |
@@ -471,8 +471,9 @@ |
||
| 471 | 471 | * for better proxy handling... |
| 472 | 472 | */ |
| 473 | 473 | public function fetchTile(string $url) { |
| 474 | - if($this->useTileCache && ($cached = $this->checkTileCache($url))) |
|
| 475 | - return $cached; |
|
| 474 | + if($this->useTileCache && ($cached = $this->checkTileCache($url))) { |
|
| 475 | + return $cached; |
|
| 476 | + } |
|
| 476 | 477 | |
| 477 | 478 | $_UA = 'Mozilla/4.0 (compatible; DokuWikiSpatial HTTP Client; ' . PHP_OS . ')'; |
| 478 | 479 | if(function_exists("curl_init")) { |
@@ -331,17 +331,17 @@ |
||
| 331 | 331 | public function serializeParams(): string { |
| 332 | 332 | return implode( |
| 333 | 333 | "&", array( |
| 334 | - $this->zoom, |
|
| 335 | - $this->lat, |
|
| 336 | - $this->lon, |
|
| 337 | - $this->width, |
|
| 338 | - $this->height, |
|
| 339 | - serialize($this->markers), |
|
| 340 | - $this->maptype, |
|
| 341 | - $this->kmlFileName, |
|
| 342 | - $this->gpxFileName, |
|
| 343 | - $this->geojsonFileName |
|
| 344 | - ) |
|
| 334 | + $this->zoom, |
|
| 335 | + $this->lat, |
|
| 336 | + $this->lon, |
|
| 337 | + $this->width, |
|
| 338 | + $this->height, |
|
| 339 | + serialize($this->markers), |
|
| 340 | + $this->maptype, |
|
| 341 | + $this->kmlFileName, |
|
| 342 | + $this->gpxFileName, |
|
| 343 | + $this->geojsonFileName |
|
| 344 | + ) |
|
| 345 | 345 | ); |
| 346 | 346 | } |
| 347 | 347 | |