You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2007/05/09 21:50:54 UTC
svn commit: r536671 -
/incubator/xap/trunk/codebase/src/xap/bridges/google/GoogleMarkersBridge.js
Author: mturyn
Date: Wed May 9 14:50:53 2007
New Revision: 536671
URL: http://svn.apache.org/viewvc?view=rev&rev=536671
Log:
Added additional comments.
Modified:
incubator/xap/trunk/codebase/src/xap/bridges/google/GoogleMarkersBridge.js
Modified: incubator/xap/trunk/codebase/src/xap/bridges/google/GoogleMarkersBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/google/GoogleMarkersBridge.js?view=diff&rev=536671&r1=536670&r2=536671
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/google/GoogleMarkersBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/google/GoogleMarkersBridge.js Wed May 9 14:50:53 2007
@@ -54,10 +54,12 @@
var childElement = e.getChange();
var childHandler = this.getUiContentHandler().getHandlerForElement( childElement );
+ // save the map object to the child
childHandler._map = this._map;
// check instance of and then handle them
if ( childHandler instanceof xap.bridges.google.GoogleMarkerBridge ) {
+ // call the GoogleMap API to add the marker
this._map.addOverlay (childHandler.getPeer());
}
}