5

I want to overlay WMS tiles on Google maps using the following scales 1:287 / 1:573 / 1:1146 / 1:2292 (layer preview in geoserver)

I set a bounding box and a centroid for a specific area to set the google map as base layer.

However as I zoom or move the mouse my overlayed tile moves along, losing focus (when panning tiles not in sync).

Is there a way to resolve this?

(i am using openlayers vs 2.1/geoserver 2.1.4)

0

1 Answer 1

2

In Short - No.

The new Google Maps v3 ToS require to use the API rather than the tiles directly. Thus, when you pan an OL map, there's a slight delay where the OL code has to pass a message to the Goog javascript API which then pans it's own map.

Whereas if we were using tiles directly, OL would pan the image tiles itself.

This is a known issue with no known legal workarounds. There are solutions out there that tap into the Google tiles directly, but I won't reference them.

We faced the same problem with the OL 2.12/Goog v3 combo with no resolution.

7
  • Do you imply that resolving this issue may violate google's terms of use?
    – Nik
    Commented Oct 16, 2012 at 6:12
  • 1
    I don't imply. I'm stating that with certainty :) There are tickets in OL that provide the solution and then the OL admins rolled back those changes due to collision with Google's terms.
    – Vadim
    Commented Oct 16, 2012 at 16:24
  • I havent worked with microsoft or nokia api, is this an issue with their api as well ? If yes are you aware if any possible solutions violate their terms of use?
    – Nik
    Commented Oct 16, 2012 at 17:37
  • You can access Bing tiles directly (OL does that for you), but now you have to use Bing v7 and have an API key. I have no experience with OL + Nokia.
    – Vadim
    Commented Oct 16, 2012 at 17:41
  • There may be an obvious answer to this one, If I ask geoserver through openlayers to return KML instead of png images will resolve the problem?
    – Nik
    Commented Oct 17, 2012 at 16:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.