[OpenLayers-Dev] Virtual Earth 5+
Tim Schaub
tschaub at openplans.org
Wed Jan 30 13:30:12 EST 2008
Hello-
Paul Huey wrote:
> All,
>
> Virtual Earth 5+ is fixed (tested in 5 and 6)..
Are you referring to an OpenLayers issue? I only see ticket #373 [1]
related to VirtualEarth.
If you are contributing new code, can you open a ticket with a
description of the issue you are addressing, and add any code as an
attachment to the ticket? Please see the wiki for information on
contributing [2].
And excuse me if this discussion is part of a thread that I slept through.
Tim
[1] http://trac.openlayers.org/ticket/373
[2] http://trac.openlayers.org/wiki/HowToContribute
>
> 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....
> !DSPAM:4033,47a08a8c193154901796417!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
> !DSPAM:4033,47a08a8c193154901796417!
More information about the Dev
mailing list