mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-06 06:38:27 +02:00
Merge pull request #162 from david-eagles/master
Modified WMTS Resource URL generation to support hostnames that contain the layer name.
This commit is contained in:
@@ -1031,7 +1031,7 @@ class Wmts extends Server {
|
|||||||
$maxMercatorZoom = max($maxMercatorZoom, $m['maxzoom']);
|
$maxMercatorZoom = max($maxMercatorZoom, $m['maxzoom']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$wmtsHost = substr($m['tiles'][0], 0, strpos($m['tiles'][0], $m['basename']));
|
$wmtsHost = substr($m['tiles'][0], 0, strrpos($m['tiles'][0], $m['basename']));
|
||||||
$resourceUrlTemplate = $wmtsHost . $basename
|
$resourceUrlTemplate = $wmtsHost . $basename
|
||||||
. '/{TileMatrix}/{TileCol}/{TileRow}';
|
. '/{TileMatrix}/{TileCol}/{TileRow}';
|
||||||
if(strlen($format) <= 4){
|
if(strlen($format) <= 4){
|
||||||
|
Reference in New Issue
Block a user