[Mapbender-commits] r3806 - in trunk/mapbender: conf
http/img/button_digitize http/javascripts http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 24 09:06:39 EDT 2009
Author: christoph
Date: 2009-03-24 09:06:39 -0400 (Tue, 24 Mar 2009)
New Revision: 3806
Added:
trunk/mapbender/http/img/button_digitize/geomClone.png
Modified:
trunk/mapbender/conf/digitize_default.conf
trunk/mapbender/http/javascripts/mod_digitize_tab.php
trunk/mapbender/http/php/mod_digitize_messages.php
Log:
http://trac.osgeo.org/mapbender/ticket/418
Modified: trunk/mapbender/conf/digitize_default.conf
===================================================================
--- trunk/mapbender/conf/digitize_default.conf 2009-03-24 10:53:25 UTC (rev 3805)
+++ trunk/mapbender/conf/digitize_default.conf 2009-03-24 13:06:39 UTC (rev 3806)
@@ -20,6 +20,7 @@
var buttonDig_wfs_src = "geomInfo.png";
var buttonDig_remove_src = "geomRemove.png";
var buttonDig_removeDb_src = "geomRemoveDb.png";
+var buttonDig_clone_src = "geomClone.png";
var dotDistance = 7;
var linepointColor = "#ffff00";
@@ -55,6 +56,8 @@
var nonTransactionalColor = "#ff66cc";
var nonTransactionalLineWidth = 2;
+var addCloneGeometryButton = false;
+
var wfsWindowWidth = 400;
var wfsWindowHeight = 300;
Added: trunk/mapbender/http/img/button_digitize/geomClone.png
===================================================================
(Binary files differ)
Property changes on: trunk/mapbender/http/img/button_digitize/geomClone.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php 2009-03-24 10:53:25 UTC (rev 3805)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php 2009-03-24 13:06:39 UTC (rev 3806)
@@ -129,7 +129,9 @@
try {if(mod_digitize_elName){}}catch(e) {mod_digitize_elName = "digitize";}
try {if(nonTransactionalEditable){}}catch(e) {nonTransactionalEditable = false;}
+try {if(addCloneGeometryButton){}}catch(e) {addCloneGeometryButton = false;}
+
function getMousePosition(e) {
parent.mb_getMousePos(e, mod_digitize_target);
var currentPos = null;
@@ -1214,6 +1216,11 @@
// button: remove this geometry
listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_remove_src+"' title='"+msgObj.buttonDig_remove_title+"' onclick='parent.mb_disableThisButton(mod_digitizeEvent);d.del("+i+");executeDigitizeSubFunctions();'>";
+
+ // button clone this geometry
+ if (addCloneGeometryButton === true) {
+ listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_clone_src+"' title='"+msgObj.buttonDig_clone_title+"' onclick='d.addCopy(d.get("+i+"));executeDigitizeSubFunctions();'>";
+ }
}
// button: remove geometry from database
Modified: trunk/mapbender/http/php/mod_digitize_messages.php
===================================================================
--- trunk/mapbender/http/php/mod_digitize_messages.php 2009-03-24 10:53:25 UTC (rev 3805)
+++ trunk/mapbender/http/php/mod_digitize_messages.php 2009-03-24 13:06:39 UTC (rev 3806)
@@ -71,6 +71,7 @@
$msg_obj["buttonDig_wfs_title"] = _mb("save / update / delete");
$msg_obj["buttonDig_remove_title"] = _mb("remove from workspace");
$msg_obj["buttonDig_removeDb_title"] = _mb("remove from database");
+$msg_obj["buttonDig_clone_title"] = _mb("clone this geometry");
$msg_obj["closePolygon_title"] = _mb("click the first basepoint to close the polygon");
$msg_obj["measureTagLabelCurrent"] = _mb("Current: ");
$msg_obj["measureTagLabelTotal"] = _mb("Total: ");
More information about the Mapbender_commits
mailing list