X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/248588fbf33484d6e7326e4ec0a1f4356ef15996..21c590416854b1245866b96772fde61050c0e01a:/lib/template/address-html.php?ds=sidebyside diff --git a/lib/template/address-html.php b/lib/template/address-html.php index 34bf852c..f8d425e2 100644 --- a/lib/template/address-html.php +++ b/lib/template/address-html.php @@ -15,6 +15,44 @@ + max zoom + +
@@ -74,9 +112,11 @@ (isset($_GET['lat'])||$_GET['lat'])?16:NULL, - 'lat' => isset($_GET['lat'])?htmlspecialchars($_GET['lat']):NULL, - 'lon' => isset($_GET['lon'])?htmlspecialchars($_GET['lon']):NULL + 'zoom' => isset($_GET['zoom']) ? htmlspecialchars($_GET['zoom']) : CONST_Default_Zoom, + 'lat' => isset($_GET['lat'] ) ? htmlspecialchars($_GET['lat'] ) : CONST_Default_Lat, + 'lon' => isset($_GET['lon'] ) ? htmlspecialchars($_GET['lon'] ) : CONST_Default_Lon, + 'tile_url' => $sTileURL, + 'tile_attribution' => $sTileAttribution ]; echo 'var nominatim_map_init = ' . json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) . ';';