UI: keep map position when switch to reverse. Easy switching of lat,lon to lon,lat

This commit is contained in:
marc tobias
2016-10-30 17:45:45 +01:00
parent a61f852cd2
commit 8312e8f539
4 changed files with 25 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
<div class="form-group">
<input name="format" type="hidden" value="html">
<input name="lat" type="text" class="form-control input-sm" placeholder="latitude" value="<?php echo htmlspecialchars($_GET['lat']); ?>" >
<span id="switch-coords">&lt;&gt;</span>
<input name="lon" type="text" class="form-control input-sm" placeholder="longitude" value="<?php echo htmlspecialchars($_GET['lon']); ?>" >
max zoom

View File

@@ -27,7 +27,7 @@
</div>
</div>
<div class="search-type-link">
<a href="<?php echo CONST_Website_BaseURL; ?>reverse.php?format=html">reverse search</a>
<a id="switch-to-reverse" href="<?php echo CONST_Website_BaseURL; ?>reverse.php?format=html">reverse search</a>
</div>
</form>