You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2010/01/21 15:08:05 UTC

svn commit: r901712 - /labs/magma/trunk/website-maps-google/src/main/resources/org/apache/magma/website/maps/mapDisplay.js

Author: simoneg
Date: Thu Jan 21 14:08:05 2010
New Revision: 901712

URL: http://svn.apache.org/viewvc?rev=901712&view=rev
Log:
Fix for proper click behavior

Modified:
    labs/magma/trunk/website-maps-google/src/main/resources/org/apache/magma/website/maps/mapDisplay.js

Modified: labs/magma/trunk/website-maps-google/src/main/resources/org/apache/magma/website/maps/mapDisplay.js
URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-maps-google/src/main/resources/org/apache/magma/website/maps/mapDisplay.js?rev=901712&r1=901711&r2=901712&view=diff
==============================================================================
--- labs/magma/trunk/website-maps-google/src/main/resources/org/apache/magma/website/maps/mapDisplay.js (original)
+++ labs/magma/trunk/website-maps-google/src/main/resources/org/apache/magma/website/maps/mapDisplay.js Thu Jan 21 14:08:05 2010
@@ -134,6 +134,7 @@
 
 MagMap.prototype.addGeometryOverlay = function(geom) {
 	var map = this.map;
+	var me = this;
 	var ovl = geom.overlay;
 	if (ovl == null) {
 		ovl = geom.createOverlay();
@@ -148,13 +149,13 @@
 		});
 	}
 	if (geom.link) {
-		GEvent.addListener(ovl,"click", function() {
-			map.onGeomtryClicked(geom);
+		GEvent.addListener(ovl,"click", function(latlng) {
+			me.onGeometryClicked(geom,latlng);
 		});
 	}			
 }
 
-MagMap.prototype.onGeometryClicked = function(geom) {
+MagMap.prototype.onGeometryClicked = function(geom,latlng) {
 	document.location = geom.link;	
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org