* staticMapLite 0.3.1
*
* Copyright 2009 Gerhard Koch
- * modded for RRZE settings - unrz191 2012 + 2016-06-02
+ * modded for RRZE settings - unrz191 2012 + 2016-06-02 + 2022-10-28
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
protected $tileSize = 256;
protected $tileSrcUrl = array( 'osmorg' => 'http://osm.rrze.fau.de/tiles/{Z}/{X}/{Y}.png',
'osmde' => 'http://osm.rrze.fau.de/osmde/{Z}/{X}/{Y}.png',
- 'osmorglowzoom' => 'http://osm.rrze.fau.de/lowzoom/{Z}/{X}/{Y}.png',
- 'luftbilderl' => 'http://osm.rrze.fau.de/luftbilderl/{Z}/{X}/{Y}.png'
+ 'osmhd' => 'http://osm.rrze.fau.de/osmhd/{Z}/{X}/{Y}.png',
+ 'osmdehd' => 'http://osm.rrze.fau.de/osmdehd/{Z}/{X}/{Y}.png',
+ 'luftbilderl' => 'http://osm.rrze.fau.de/luftbilderl2016/{Z}/{X}/{Y}.png'
);
protected $tileDefaultSrc = 'osmde';
{
// get zoom from GET paramter
$this->zoom = $_GET['zoom'] ? intval($_GET['zoom']) : 0;
- if ($this->zoom > 18) $this->zoom = 18;
+ if ($this->zoom > 19) $this->zoom = 19;
// get lat and lon from GET paramter
list($this->lat, $this->lon) = explode(',', $_GET['center']);
}
if ($_GET['maptype']) {
- if (array_key_exists($_GET['maptype'], $this->tileSrcUrl)) $this->maptype = $_GET['maptype'];
+ if (array_key_exists($_GET['maptype'], $this->tileSrcUrl)) {
+ $this->maptype = $_GET['maptype'];
+ if (($_GET['maptype'] == "osmhd") || ($_GET['maptype'] == "osmdehd")) {
+ $this->tileSize = 512;
+ }
+ }
}
}