Ticket #2807 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

Switching from WMS/Yahoo to Google layer hides all controls

Reported by: ramesbab Owned by: tschaub
Priority: major Milestone: 2.11 Release
Component: Layer.Google Version: 2.9
Keywords: Cc:
State:

Description

I have Websphere server where i am trying to deploy my war content. and i have 2-3 map layers and one of them is google. on switching the layer to google all my controls are getting hidden. i can only see google map, and all controls just stays behind. all sample html files run fine in my laptop, but i see this problem only on the server.

Attachments

ol google issue.JPG Download (45.2 KB) - added by ramesbab 3 years ago.
google layer problem

Change History

Changed 3 years ago by ahocevar

This usually happens when you have an invalid GMaps API key. When loading the page, do you get an error message complaining about the GMaps API key?

Changed 3 years ago by ramesbab

google layer problem

Changed 3 years ago by ramesbab

i get gmap key alert. but this was not the case before. i used to get this alert early and on clicking ok, i was able to use OL controls. now all the controls hidden behind Google map. attached the snap shot of the same.

Changed 3 years ago by ahocevar

  • status changed from new to closed
  • resolution set to invalid

You have to use a valid API key. OpenLayers cannot guarantee the Google Layer to work if you don't fulfill Google's requirements.

Changed 3 years ago by ramesbab

ok thanks, let me test after getting the key.....

Changed 3 years ago by ramesbab

ok its confirmed, unless otherwise we have proper google key or we are running on local host. we cannot use it outside, and this is done lately.

Changed 3 years ago by ahocevar

With trunk or the upcoming 2.10 release, you can use the GMaps V3 API, which does not require an API key.

Note: See TracTickets for help on using tickets.