[fusion-commits] r1556 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Sep 26 13:04:32 EDT 2008
Author: pagameba
Date: 2008-09-26 13:04:32 -0400 (Fri, 26 Sep 2008)
New Revision: 1556
Modified:
trunk/widgets/Maptip.js
Log:
switch to OpenLayers functions, change to initializeWidget instead of initialize
Modified: trunk/widgets/Maptip.js
===================================================================
--- trunk/widgets/Maptip.js 2008-09-26 17:02:03 UTC (rev 1555)
+++ trunk/widgets/Maptip.js 2008-09-26 17:04:32 UTC (rev 1556)
@@ -58,7 +58,7 @@
sWinFeatures: 'menubar=no,location=no,resizable=no,status=no',
offset: new OpenLayers.Pixel(2,2),
- initialize : function(widgetTag) {
+ initializeWidget: function(widgetTag) {
var json = widgetTag.extension;
this.sTarget = json.Target ? json.Target[0] : "MaptipWindow";
@@ -122,7 +122,7 @@
}
var p = this.getMap().getEventPosition(e);
this.oCurrentPosition = p;
- this.oMapTipPosition = {x:Event.pointerX(e), y:Event.pointerY(e)};
+ this.oMapTipPosition = p;
if (this.oCurrentPosition) {
window.clearTimeout(this.nTimer);
this.nTimer = null;
More information about the fusion-commits
mailing list