]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
Merge remote-tracking branch 'upstream/master' into cmake-port
[nominatim.git] / lib / template / search-html.php
index 8b995b626faa70832b2bd4a2848a38866408e03c..dc4dcc748929f00cbb4110d57f2d42e87ce633d7 100644 (file)
        <script type="text/javascript">
        <?php
 
-               $aNominatimMapInit = [
-                       'zoom' => $iZoom,
-                       'lat' => $fLat,
-                       'lon' => $fLon,
-                       'tile_url' => $sTileURL,
-                       'tile_attribution' => $sTileAttribution
-               ];
+               $aNominatimMapInit = array(
+                       'zoom' => CONST_Default_Zoom,
+                       'lat' => CONST_Default_Lat,
+                       'lon' => CONST_Default_Lon,
+                       'tile_url' => CONST_Map_Tile_URL,
+                       'tile_attribution' => CONST_Map_Tile_Attribution
+               );
                echo 'var nominatim_map_init = ' . json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) . ';';
 
                echo 'var nominatim_results = ' . json_encode($aSearchResults, JSON_PRETTY_PRINT) . ';';