version as used after the move to new hardware in september 2022 master
authorUser for running Openstreetmap-things <osm@toothless.rrze.uni-erlangen.de>
Mon, 31 Oct 2022 08:15:06 +0000 (09:15 +0100)
committerUser for running Openstreetmap-things <osm@toothless.rrze.uni-erlangen.de>
Mon, 31 Oct 2022 08:15:06 +0000 (09:15 +0100)
(minor local changes)

cgis/staticmap.php

index d8317dbb61f220968c6c2d34bbb09c1b956b86c9..4db94283cbe767f08bb4736dfb565c87ed352e4c 100755 (executable)
@@ -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;
+                }
+            }
         }
     }
 
This page took 0.071715 seconds and 4 git commands to generate.