]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
replace new-style [] expression with old-style array()
[nominatim.git] / lib / template / search-html.php
index e523c44680e9b268db9c1e39ee88ecfc87b1c5b2..dc4dcc748929f00cbb4110d57f2d42e87ce633d7 100644 (file)
        <script type="text/javascript">
        <?php
 
-               $aNominatimMapInit = [
-                       'zoom' => $iZoom,
-                       'lat' => $fLat,
-                       'lon' => $fLon
-               ];
+               $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) . ';';