X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=osmrrze.git;a=blobdiff_plain;f=cgis%2Fstaticmap.php;fp=cgis%2Fstaticmap.php;h=4db94283cbe767f08bb4736dfb565c87ed352e4c;hp=d8317dbb61f220968c6c2d34bbb09c1b956b86c9;hb=2e859c706da0a540b6bbcb90c2be959d2167fa81;hpb=1af272b1953718924b15dfa5b1f4ca458f102ea3 diff --git a/cgis/staticmap.php b/cgis/staticmap.php index d8317db..4db9428 100755 --- a/cgis/staticmap.php +++ b/cgis/staticmap.php @@ -5,7 +5,7 @@ * 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. @@ -39,8 +39,9 @@ Class staticMapLite 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'; @@ -114,7 +115,7 @@ Class staticMapLite { // 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']); @@ -141,7 +142,12 @@ Class staticMapLite } 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; + } + } } }