HTML map: new button -show map bounds- in top right corner

This commit is contained in:
Marc Tobias Metten
2016-08-24 04:21:28 +02:00
parent 797c2d1e74
commit 87b6810eba
3 changed files with 6 additions and 3 deletions

View File

@@ -96,7 +96,10 @@
<?php } ?> <?php } ?>
<div id="map-wrapper"> <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 id="map"></div>
</div> </div>

View File

@@ -53,7 +53,7 @@ form label {
#map-position { #map-position {
display: none; display: none;
position: absolute; position: absolute;
bottom: 0; top: 0;
right: 20px; right: 20px;
padding: 0 5px; padding: 0 5px;
color: #333; color: #333;

View File

@@ -31,7 +31,7 @@ jQuery(document).on('ready', function(){
var MapPositionControl = L.Control.extend({ var MapPositionControl = L.Control.extend({
options: { options: {
position: 'bottomright' position: 'topright'
}, },
onAdd: function (map) { onAdd: function (map) {