Lines Matching defs:url

44         'openstreetmap' => ['txt'  => '(c) OpenStreetMap data/ODbl', 'logo' => 'osm_logo.png', 'url'  => 'https://tile.openstreetmap.org/{Z}/{X}/{Y}.png'],
46 'opentopomap' => ['txt' => '(c) OpenStreetMap data/ODbl, SRTM | style: (c) OpenTopoMap', 'logo' => 'osm_logo.png', 'url' => 'https:/tile.opentopomap.org/{Z}/{X}/{Y}.png'],
48 'cycle' => ['txt' => '(c) Thunderforest maps', 'logo' => 'tf_logo.png', 'url' => 'https://tile.thunderforest.com/cycle/{Z}/{X}/{Y}.png'],
49 'transport' => ['txt' => '(c) Thunderforest maps', 'logo' => 'tf_logo.png', 'url' => 'https://tile.thunderforest.com/transport/{Z}/{X}/{Y}.png'],
50 'landscape' => ['txt' => '(c) Thunderforest maps', 'logo' => 'tf_logo.png', 'url' => 'https://tile.thunderforest.com/landscape/{Z}/{X}/{Y}.png'],
51 'outdoors' => ['txt' => '(c) Thunderforest maps', 'logo' => 'tf_logo.png', 'url' => 'https://tile.thunderforest.com/outdoors/{Z}/{X}/{Y}.png'],
52 'toner' => ['txt' => '(c) Stadia Maps;Stamen Design;OpenStreetMap contributors', 'logo' => 'stamen.png', 'url' => 'https://tiles-eu.stadiamaps.com/tiles/stamen_toner/{Z}/{X}/{Y}.png'],
53 'terrain' => ['txt' => '(c) Stadia Maps;Stamen Design;OpenStreetMap contributors', 'logo' => 'stamen.png', 'url' => 'https://tiles-eu.stadiamaps.com/tiles/stamen_terrain/{Z}/{X}/{Y}.png'],
165 * @return string url relative to media dir
185 // make url relative to media dir
374 $url = str_replace(
377 $this->tileInfo [$this->maptype] ['url']
380 $tileData = $this->fetchTile($url);
407 * @param string $url
412 public function fetchTile(string $url)
414 if ($this->useTileCache && ($cached = $this->checkTileCache($url)))
424 curl_setopt($ch, CURLOPT_URL, $url . $this->apikey);
425 Logger::debug("StaticMap::fetchTile: getting: $url using curl_exec");
442 "StaticMap::fetchTile: getting: $url . $this->apikey using file_get_contents and options $opts"
444 $tile = file_get_contents($url . $this->apikey, false, $context);
447 $this->writeTileToCache($url, $tile);
454 * @param string $url
457 public function checkTileCache(string $url)
459 $filename = $this->tileUrlToFilename($url);
468 * @param string $url
470 public function tileUrlToFilename(string $url): string
472 return $this->tileCacheBaseDir . "/" . substr($url, strpos($url, '/') + 1);
478 * @param string $url
481 public function writeTileToCache($url, $data): void
483 $filename = $this->tileUrlToFilename($url);