[fusion-commits] r1549 - in branches/fusion-1.1: MapGuide lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Sep 24 14:29:07 EDT 2008
Author: madair
Date: 2008-09-24 14:29:07 -0400 (Wed, 24 Sep 2008)
New Revision: 1549
Modified:
branches/fusion-1.1/MapGuide/MapGuide.js
branches/fusion-1.1/lib/Map.js
Log:
re #132
Modified: branches/fusion-1.1/MapGuide/MapGuide.js
===================================================================
--- branches/fusion-1.1/MapGuide/MapGuide.js 2008-09-23 21:40:33 UTC (rev 1548)
+++ branches/fusion-1.1/MapGuide/MapGuide.js 2008-09-24 18:29:07 UTC (rev 1549)
@@ -481,9 +481,12 @@
isBaseLayer : bIsBaseLayer,
maxExtent : this._oMaxExtent,
maxResolution : 'auto',
- ratio : this.ratio,
- transitionEffect : 'resize'
+ ratio : this.ratio
+// transitionEffect : 'resize'
};
+ if (!/WebKit/.test(navigator.userAgent)) {
+ layerOptions.transitionEffect = 'resize';
+ }
//add in scales array if supplied
if (this.scales && this.scales.length>0) {
Modified: branches/fusion-1.1/lib/Map.js
===================================================================
--- branches/fusion-1.1/lib/Map.js 2008-09-23 21:40:33 UTC (rev 1548)
+++ branches/fusion-1.1/lib/Map.js 2008-09-24 18:29:07 UTC (rev 1549)
@@ -159,6 +159,7 @@
this.oMapOL.events.register('moveend', this, this.mapExtentsChanged);
this._oDomObj.oncontextmenu = function() {return false;};
+ this._oDomObj.onselectstart = function() {return false;};
OpenLayers.Event.observe(this._oDomObj, 'contextmenu',
OpenLayers.Function.bind(this.onContextMenu, this));
@@ -853,6 +854,9 @@
*/
stopObserveEvent : function(sEventName, fnCB)
{
+ //debugger; //shows error in IE and Safari: OpenLayers.Event is
+ //overriden by prototype Event for some reason. Uncomment
+ //the debugger line and step into next function to see it
OpenLayers.Event.stopObserving(this._oDomObj, sEventName, fnCB, false);
},
More information about the fusion-commits
mailing list