X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a9b370fcb2f73aac47363ffe75feaae2984fbe73..21c590416854b1245866b96772fde61050c0e01a:/lib/template/address-html.php?ds=sidebyside diff --git a/lib/template/address-html.php b/lib/template/address-html.php index dbe982f0..f8d425e2 100644 --- a/lib/template/address-html.php +++ b/lib/template/address-html.php @@ -112,9 +112,11 @@ isset($_GET['zoom'])?htmlspecialchars($_GET['zoom']):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) . ';';