[Mapbender-commits] r9131 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Dec 12 02:19:35 PST 2014
Author: armin11
Date: 2014-12-12 02:19:35 -0800 (Fri, 12 Dec 2014)
New Revision: 9131
Modified:
trunk/mapbender/http/javascripts/mod_coords_div.php
Log:
Enhance mod_coords_div to be shown in mapframe
Modified: trunk/mapbender/http/javascripts/mod_coords_div.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_coords_div.php 2014-12-11 09:50:05 UTC (rev 9130)
+++ trunk/mapbender/http/javascripts/mod_coords_div.php 2014-12-12 10:19:35 UTC (rev 9131)
@@ -65,7 +65,7 @@
return;
}
var pos = mod_showCoords_div_mapObj.convertPixelToReal(click);
- mod_showCoords_div_fix = "Selection: " + pos.x + " / " + pos.y;
+ mod_showCoords_div_fix = "<?php echo _mb('Selection'); ?>: " + pos.x + " / " + pos.y;
if (mod_showCoords_div_mapObj.epsg =='EPSG:4326' || mod_showCoords_div_mapObj.epsg=="EPSG:4258") {
strDMS = dec2dms(pos.x) + " / " + dec2dms(pos.y);
mod_showCoords_div_fix += " <br> " + strDMS;
@@ -100,13 +100,13 @@
function mod_showCoord_write(x,y){
if(document.getElementById(displayTarget)){
- var str = x + " / " + y;
+ var str = "<div class='actualcoords'>" + x + " / " + y;
if (mod_showCoords_div_mapObj.epsg =='EPSG:4326' || mod_showCoords_div_mapObj.epsg=="EPSG:4258") {
strDMS = dec2dms(x) + " / " + dec2dms(y);
- str += " <br> " + strDMS;
+ str += " <br> " + strDMS + "</div>";
}
if(mod_showCoords_div_fix != ""){
- str += "<div>" + mod_showCoords_div_fix + "</div>";
+ str += "<div class='selectedcoords'>" + mod_showCoords_div_fix + "</div>";
}
writeTag("",displayTarget, str);
}
More information about the Mapbender_commits
mailing list