From efc763b1d4ff8c030cec81a61f88a16e78113462 Mon Sep 17 00:00:00 2001 From: administrador User Date: Fri, 13 Feb 2009 21:20:11 +0100 Subject: [PATCH] Desactivar arrastre de objetos para no administradores. --- include/maps/GoogleMapAPI.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/maps/GoogleMapAPI.class.php b/include/maps/GoogleMapAPI.class.php index fa5dfce..bcec6fa 100755 --- a/include/maps/GoogleMapAPI.class.php +++ b/include/maps/GoogleMapAPI.class.php @@ -782,8 +782,10 @@ class GoogleMapAPI { $_output .= 'GEvent.addListener(marker, "infowindowclose", function() { $("#datos_mupis").html(""); });' . "\n"; $_output .= '}' . "\n"; } + if (!$this->disable_drag) { $_output .= 'GEvent.addListener(marker, "dragstart", function() { map.closeInfoWindow(); var pointo = marker.getPoint(); });' . "\n"; $_output .= 'GEvent.addListener(marker, "dragend", function() { var point = marker.getPoint(); alert( id + \' \' + fix6ToString( point.lat() ) + \',\' + fix6ToString( point.lng() ) ); });' . "\n"; + } $_output .= 'points[counter] = point;' . "\n"; $_output .= 'markers[counter] = marker;' . "\n"; if($this->sidebar) { -- 2.11.4.GIT