Ticket #1540: ve.2.patch
| File ve.2.patch, 1.7 kB (added by euzuro, 4 months ago) |
|---|
-
lib/OpenLayers/Layer/VirtualEarth.js
old new 209 209 * {Object} MapObject LonLat translated from MapObject Pixel 210 210 */ 211 211 getMapObjectLonLatFromMapObjectPixel: function(moPixel) { 212 return this.mapObject.PixelToLatLong(moPixel.x, moPixel.y); 212 //the conditional here is to test if we are running the v6 of VE 213 return (VEPixel) ? this.mapObject.PixelToLatLong(moPixel) 214 : this.mapObject.PixelToLatLong(moPixel.x, moPixel.y); 213 215 }, 214 216 215 217 /** … … 325 327 * {Object} MapObject Pixel from x and y parameters 326 328 */ 327 329 getMapObjectPixelFromXY: function(x, y) { 328 return new Msn.VE.Pixel(x, y); 330 //the conditional here is to test if we are running the v6 of VE 331 return (VEPixel) ? new VEPixel(x, y) 332 : new Msn.VE.Pixel(x, y); 329 333 }, 330 334 331 335 CLASS_NAME: "OpenLayers.Layer.VirtualEarth" -
examples/ve.html
old new 3 3 <title>OpenLayers Virtual Earth Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 5 <link rel="stylesheet" href="style.css" type="text/css" /> 6 <script src='http://dev.virtualearth.net/mapcontrol/ v3/mapcontrol.js'></script>6 <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script> 7 7 8 8 <script src="../lib/OpenLayers.js"></script> 9 9 <script type="text/javascript">
