[OpenLayers-Dev] Virtual Earth 5+
Paul Huey
huey.paul at gmail.com
Wed Jan 30 09:32:36 EST 2008
All,
Virtual Earth 5+ is fixed (tested in 5 and 6)..
Shame its not a fix for the 3D, this seems to work totally different..
It is basically a change of three functions..
getMapObjectPixelFromXY: function(x, y) {
return new VEPixel(x,y);
getMapObjectLonLatFromMapObjectPixel: function(moPixel) {
return this.mapObject.PixelToLatLong(new VEPixel(moPixel.x,
moPixel.y));
getMapObjectPixelFromMapObjectLonLat: function(moLonLat) {
return this.mapObject.LatLongToPixel(new VELatLong(moLonLat.Latitude,
moLonLat.Longitude));
The map now works exactly the same as in the previous versions.. Take it a
bit jumpy but its useable.
I have created a new js class called
VirtualEarth5Plus.js
Plus a new OpenLayers object called VirtualEarth5Plus.. Just change the
reference in the HTML file to use the new class and change the ve.html to
point to version 5 or 6 and it should be OK.. Any problems plz let me know..
JS is attached to this email..
Cheers,
Paul....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/dev/attachments/20080130/bc8e598d/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VirtualEarth5Plus.js
Type: application/x-javascript
Size: 8486 bytes
Desc: not available
Url : http://openlayers.org/pipermail/dev/attachments/20080130/bc8e598d/attachment-0001.js
More information about the Dev
mailing list