[Mapbender-commits] r8740 - in trunk/mapbender: http/javascripts resources/locale/de_DE/LC_MESSAGES
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 14 05:13:44 PST 2013
Author: armin11
Date: 2013-11-14 05:13:44 -0800 (Thu, 14 Nov 2013)
New Revision: 8740
Modified:
trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
Log:
Enhancement of crs error message for wfs modules
Modified: trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php 2013-11-11 21:04:14 UTC (rev 8739)
+++ trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php 2013-11-14 13:13:44 UTC (rev 8740)
@@ -659,10 +659,21 @@
var otherSrs = global_wfsConfObj[global_selectedWfsConfId].featuretype_other_srs;
if(otherSrs.length == 0) {
- var msg = "<?php echo _mb("The coordinate reference system (crs) of the objects differ from the crs of the viewer. A query will not be possible. Please change the crs of the viewer first."); ?>\n";
- msg += parent.mb_mapObj[ind].getSRS()+" und "+global_wfsConfObj[global_selectedWfsConfId].featuretype_srs;
- alert(msg);
-
+ viewerEpsgId = parent.mb_mapObj[ind].getSRS().split(":");
+ viewerEpsgId = viewerEpsgId.slice(-1)[0];
+ viewerEpsgIdLink = "<a style=\"color:#808040; text-decoration:underline;\" target=\"_blank\" href=\"http://spatialreference.org/ref/epsg/"+viewerEpsgId+"/\">"+parent.mb_mapObj[ind].getSRS()+"</a>";
+ var msg = "<?php echo _mb("The coordinate reference system (crs) of the objects differ from the crs of the viewer"); ?>"+" ("+viewerEpsgIdLink+"). "+"<?php echo _mb("A query will not be possible."); ?>\n";
+ epsgId = global_wfsConfObj[global_selectedWfsConfId].featuretype_srs.split(":");
+ epsgId = epsgId.slice(-1)[0];
+ epsgIdLink = "<a style=\"color:#808040; text-decoration:underline;\" target=\"_blank\" href=\"http://spatialreference.org/ref/epsg/"+epsgId+"/\">"+global_wfsConfObj[global_selectedWfsConfId].featuretype_srs+"</a>";
+ msg += "<?php echo _mb("Please switch viewer crs to"); ?> " + " " + epsgIdLink;
+ srsErrorPopup = parent.$("<div><p>"+ msg +"</p></div>").dialog({
+ title: "<?php echo _mb("CRS Error"); ?>",
+ width:500,
+ height: 150,
+ modal: true
+ });
+ srsErrorPopup.dialog('open');
//disable Submit Button
if(submit)submit.disabled = true;
if(submit_attr)submit_attr.disabled = true;
Modified: trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
===================================================================
--- trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po 2013-11-11 21:04:14 UTC (rev 8739)
+++ trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po 2013-11-14 13:13:44 UTC (rev 8740)
@@ -3644,5 +3644,17 @@
msgid " euro</b>. For information about possible discounts please contact "
msgstr " Euro</b>. Angaben zu eventuell möglichen Rabatten erhalten Sie über "
+msgid "The coordinate reference system (crs) of the objects differ from the crs of the viewer"
+msgstr "Das Koordinatensystem (CRS) der abgefragten Objekte unterscheidet sich vom Koordinatensystem des Viewers"
+msgid "A query will not be possible."
+msgstr "Eine Abfrage ist nicht möglich."
+msgid "Please switch viewer crs to"
+msgstr "Bitte wechseln sie das Koordinatensystem auf"
+
+msgid "CRS Error"
+msgstr "Fehler bei den Koordinatensystemen"
+
+
+
More information about the Mapbender_commits
mailing list