]> git.openstreetmap.org Git - nominatim.git/commitdiff
HTML map: new button -show map bounds- in top right corner
authorMarc Tobias Metten <mtmail@gmx.net>
Wed, 24 Aug 2016 02:21:28 +0000 (04:21 +0200)
committerMarc Tobias Metten <mtmail@gmx.net>
Wed, 24 Aug 2016 02:21:28 +0000 (04:21 +0200)
lib/template/address-html.php
website/css/search.css
website/js/nominatim-ui.js

index ed5c39eb83ab5e0c81486d4ec481802cfd990ba8..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>
 
index 2e3dd4bea7abfd5eca35f4826d29fd2c540ae084..d018ab94c3795ce4daa5d342b68a1d8325fffbfb 100644 (file)
@@ -53,7 +53,7 @@ form label {
 #map-position {
   display: none;
   position: absolute;
-  bottom: 0;
+  top: 0;
   right: 20px;
   padding: 0 5px;
   color: #333;
index 9622f821c56720650d73c3d059986588d9c01d8b..d1cd4548badf8b0bee5f65cab146ab54b8b8f615 100644 (file)
@@ -31,7 +31,7 @@ jQuery(document).on('ready', function(){
 
        var MapPositionControl = L.Control.extend({
                        options: {
-                                       position: 'bottomright'
+                                       position: 'topright'
                        },
 
                        onAdd: function (map) {