]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-html.php
Merge pull request #498 from mtmail/move-mouse-position-info-on-map
[nominatim.git] / lib / template / address-html.php
index b943c5302f9125928d0a60e2c06152c628aebddd..fef389543f6f064395fc0856c8eb6126f60c9f45 100644 (file)
 <?php } ?>
 
                <div id="map-wrapper">
-                       <div id="map-position"></div>
+                       <div id="map-position">
+                               <div id="map-position-inner"></div>
+                               <div id="map-position-close"><a href="#">hide</a></div>
+                       </div>
                        <div id="map"></div>
                </div>
 
        <script type="text/javascript">
        <?php
 
-               $aNominatimMapInit = [
+               $aNominatimMapInit = array(
                        '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,
+                       '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) . ';';
 
                echo 'var nominatim_results = ' . json_encode([$aPlace], JSON_PRETTY_PRINT) . ';';