OpenLayers OpenLayers

Ticket #816 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

Google Layer Disappears on Drag

Reported by: euzuro Assigned to: euzuro
Priority: minor Milestone: 2.6 Release
Component: Layer.Google Version: 2.4
Keywords: Cc:
State:

Description

As reportedby Jonas B on dev list:


whenever i dragg the map around, the googleLayer disappears after like an inch or two of movement – and stays invisible as long as i keep moving the mouse. once i stop, even for a brief moment, the layer correctly loads. all other layers i tried to put atop the googleLayer show fine even when the googleLayer doesn’t. if i don’t stop moving the mouse the googleLayer just stays gone. this happened when using the official examples, and all demos i made trying to get it working. played around with different versions of OL, but it seemed to work in none of them. tried it in ie 7 and ff2/win & ff2/unix. maybe this already has been spoken about, but i could not find any posts regarding this.

the whole googleLayer disappears all tiles at once, nevermind which kind of googleLayer (satellite/map/hybrid) i use. it seems to disappear around the moment when some new tiles should be loaded. anybody ran into that one too? i feel this is quite inconvenient, it just ruins the fun when browsing with a googleLayer in my map. im not into google, but it would make my work a lot easier , and better looking =).

Attachments

dragGMaps.patch (4.4 kB) - added by euzuro on 11/20/07 02:28:57.
smooth dragging in gmaps! hoorah cr5!

Change History

07/20/07 02:00:54 changed by bwoodall

From what I have observed ( in my own little tweaked OL world) is that the Gmap 'flashing' is on some tile boundary. If I have marked where I have put my cursor and then drag it in a vert or horz direction, the flash will occur when I go the span of a tile.

10/10/07 01:15:10 changed by crschmidt

  • status changed from new to closed.
  • resolution set to wontfix.

11/20/07 02:28:57 changed by euzuro

  • attachment dragGMaps.patch added.

smooth dragging in gmaps! hoorah cr5!

11/20/07 02:30:41 changed by euzuro

  • status changed from closed to reopened.
  • resolution deleted.
  • milestone set to 2.6 Release.

Cr5 has done a little pokin' around and found a convenient function that allows us to smoothly drag. Please see dragGMaps.patch

11/20/07 11:50:17 changed by tschaub

  • keywords set to commit.

Nice find. Let's hope we can replace this with something from the api - until then, I think it will make folks happier.

Please commit.

11/20/07 17:21:58 changed by euzuro

  • keywords deleted.
  • status changed from reopened to closed.
  • resolution set to fixed.

(In [5224]) patch for smoother dragging of google layer. For now this remains a wierd (and admirable) hack... restricted to the use of v2.82 of the google api... but hot damn. it does work. hopefully the good folks at google might help us out and open this up as part of the API. Dinosaur egg kudos to cr5 for finding this and taking the time to plug it in. Thanks to tschaub for the quick review. (Closes #816)

11/20/07 17:24:24 changed by euzuro

just one more small comment, for the record... this patch is only compatible if you specify version 2.82 from the google api. just v=2 will not work (though it will, of course, not break either... you just don't get the smooth dragging).

Also, please, ye holding the keys to the commercial layers... if you could expose a nice dragPan() style function, this would help us a lot.