codesite-noreply at google.com
2009-May-28 11:08 UTC
[Mapstraction] [mapstraction commit] r7 - Fixed overflow problem with Virtual Earth styles switching from float to relative
Author: k8chapman Date: Thu May 28 04:07:53 2009 New Revision: 7 Modified: trunk/source/mxn.microsoft.core.js trunk/tests/index.htm Log: Fixed overflow problem with Virtual Earth styles switching from float to relative Modified: trunk/source/mxn.microsoft.core.js =============================================================================--- trunk/source/mxn.microsoft.core.js (original) +++ trunk/source/mxn.microsoft.core.js Thu May 28 04:07:53 2009 @@ -6,7 +6,7 @@ var me = this; if (VEMap){ this.maps[api] = new VEMap(element.id); - + document.getElementById(element.id).style.position= ''relative''; this.maps[api].AttachEvent(''onclick'', function(event){ me.clickHandler(); var x = event.mapX; Modified: trunk/tests/index.htm =============================================================================--- trunk/tests/index.htm (original) +++ trunk/tests/index.htm Thu May 28 04:07:53 2009 @@ -5,13 +5,15 @@ <title>Mapstraction V2 demo</title> <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAY70wuSo0zF3ZtJVp5bDm1BS1Y2ErAqCHV5rDhHSzgjy23KqwdRRaoSBuZk72oDzzAYxVBjtsLqSmTw"></script> <script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=5wTxDW_V34GQjK.7glLG6OnJSRxCvfLj7ktMsuOoR42Gkm16vDVEjjw6FGWJ1Gky"></script> - + <script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script> <script src="domReady.js" type="text/javascript"></script> <script src="../source/mxn.js" type="text/javascript"></script> <script src="../source/mxn.core.js" type="text/javascript"></script> <script src="../source/mxn.google.core.js" type="text/javascript"></script> <script src="../source/mxn.yahoo.core.js" type="text/javascript"></script> - <script type="text/javascript"> + <script src="../source/mxn.microsoft.core.js" type="text/javascript"></script> + + <script type="text/javascript"> //<![CDATA[ if(typeof(Enumerator) == ''undefined''){ @@ -38,7 +40,7 @@ var infoElm = document.getElementById(''info''); var eventsElm = document.getElementById(''events''); - var m = new mxn.Mapstraction(''map'', ''yahoo''); + var m = new mxn.Mapstraction(''map'', ''microsoft''); m.endPan.addHandler(function(sEvtName, oEvtSource, oEvtArgs){ var center = oEvtSource.getCenter();