@@ -410,8 +410,9 @@ |
||
| 410 | 410 | */ |
| 411 | 411 | public function fetchTile(string $url) |
| 412 | 412 | { |
| 413 | - if ($this->useTileCache && ($cached = $this->checkTileCache($url))) |
|
| 414 | - return $cached; |
|
| 413 | + if ($this->useTileCache && ($cached = $this->checkTileCache($url))) { |
|
| 414 | + return $cached; |
|
| 415 | + } |
|
| 415 | 416 | |
| 416 | 417 | $_UA = 'Mozilla/4.0 (compatible; DokuWikiSpatial HTTP Client; ' . PHP_OS . ')'; |
| 417 | 418 | if (function_exists("curl_init")) { |
@@ -607,8 +607,9 @@ |
||
| 607 | 607 | . "%2C" . $bbox ['maxlon']; |
| 608 | 608 | $imgUrl .= "&dcl=1"; |
| 609 | 609 | } |
| 610 | - if (strpos($imgUrl, "?") === false) |
|
| 611 | - $imgUrl .= "?"; |
|
| 610 | + if (strpos($imgUrl, "?") === false) { |
|
| 611 | + $imgUrl .= "?"; |
|
| 612 | + } |
|
| 612 | 613 | |
| 613 | 614 | //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . "," |
| 614 | 615 | // . str_replace ( "px", "", $gmap ['height'] ); |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | $_nocache = true; |
| 125 | 125 | $imgUrl .= $this->getBing($gmap, $overlay) . "&.png"; |
| 126 | 126 | } |
| 127 | - /* elseif (stripos ( $gmap ['baselyr'], 'mapquest' ) !== false) { |
|
| 127 | + /* elseif (stripos ( $gmap ['baselyr'], 'mapquest' ) !== false) { |
|
| 128 | 128 | // MapQuest |
| 129 | 129 | if (! $this->getConf ( 'mapquestAPIKey' )) { |
| 130 | 130 | // no API key for MapQuest, use OSM |