Discussion:
[OpenLayers-Dev] Openlayers 2.13.1 Google maps not showing recently (Sep 2015)
Jason Lee
2015-09-02 11:16:27 UTC
Permalink
Hi all,
I have an Openlayers 2 map showing a Google base map and a semi-transparent
overlay. The map had been updated to Openlayers 2.13.1 for a while now to
enabled it to work on mobile devices acceptably.

However, since this week (Sep 2015), the Google base maps have not been
showing and I can only see our custom semi-transparent overlay over a
grey/blank map.

As a temporary workaround, I've had to downgrade to previous Openlayers
(2.11)!

The map should be well within the Google usage limits and I haven't read of
any changes to the Google maps service so i cannot understand why the map
suddenly changed - anyone else have similar experience or can advise?

Jason
Paul Spencer
2015-09-02 13:22:29 UTC
Permalink
My understanding is that a recent API change released by Google has broken OpenLayers 2.13 compatibility. Apparently they are aware of the problem and looking to fix it. The suggested work-around was to request an older version of the Google Maps API.

Cheers

Paul
Post by Jason Lee
Hi all,
I have an Openlayers 2 map showing a Google base map and a semi-transparent overlay. The map had been updated to Openlayers 2.13.1 for a while now to enabled it to work on mobile devices acceptably.
However, since this week (Sep 2015), the Google base maps have not been showing and I can only see our custom semi-transparent overlay over a grey/blank map.
As a temporary workaround, I've had to downgrade to previous Openlayers (2.11)!
The map should be well within the Google usage limits and I haven't read of any changes to the Google maps service so i cannot understand why the map suddenly changed - anyone else have similar experience or can advise?
Jason
_______________________________________________
Dev mailing list
http://lists.osgeo.org/mailman/listinfo/openlayers-dev
Jason Lee
2015-09-02 14:25:24 UTC
Permalink
Yes, reverting to GMaps "v=3.20" (Apr 2015:
https://developers.google.com/maps/documentation/javascript/releases) now
works for me. Thanks for the tip.
Post by Paul Spencer
My understanding is that a recent API change released by Google has broken
OpenLayers 2.13 compatibility. Apparently they are aware of the problem
and looking to fix it. The suggested work-around was to request an older
version of the Google Maps API.
Cheers
Paul
Post by Jason Lee
Hi all,
I have an Openlayers 2 map showing a Google base map and a
semi-transparent overlay. The map had been updated to Openlayers 2.13.1 for
a while now to enabled it to work on mobile devices acceptably.
Post by Jason Lee
However, since this week (Sep 2015), the Google base maps have not been
showing and I can only see our custom semi-transparent overlay over a
grey/blank map.
Post by Jason Lee
As a temporary workaround, I've had to downgrade to previous Openlayers
(2.11)!
Post by Jason Lee
The map should be well within the Google usage limits and I haven't read
of any changes to the Google maps service so i cannot understand why the
map suddenly changed - anyone else have similar experience or can advise?
Post by Jason Lee
Jason
_______________________________________________
Dev mailing list
http://lists.osgeo.org/mailman/listinfo/openlayers-dev
laurentK2
2015-09-02 17:46:12 UTC
Permalink
We are experiencing the same issue.

A colleague noticed that the problem arises only if a Google Maps layer is
set as the base layer when initializing the map. We're able to see a Google
base layer when another type of layer was used as the base layer (in our
case WMS) to initialize the map.

In the meantime, we'll be requesting version 3.2 as per Jaslee's suggestion.
Thank you.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Openlayers-2-13-1-Google-maps-not-showing-recently-Sep-2015-tp5222280p5222341.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
Jason Lee
2015-11-19 10:33:46 UTC
Permalink
This has happened again since this week. Digging around I have seen
discussion here about a better solution:-
https://github.com/openlayers/openlayers/issues/1450

Someone even helpfully supplied a minified Openlayers.js fix:-
https://github.com/vitalidze/traccar-web/blob/dev/src/main/webapp/js/openlayers/OpenLayers.js
(
https://raw.githubusercontent.com/vitalidze/traccar-web/dev/src/main/webapp/js/openlayers/OpenLayers.js
)

Works for me.
Post by laurentK2
We are experiencing the same issue.
A colleague noticed that the problem arises only if a Google Maps layer is
set as the base layer when initializing the map. We're able to see a Google
base layer when another type of layer was used as the base layer (in our
case WMS) to initialize the map.
In the meantime, we'll be requesting version 3.2 as per Jaslee's suggestion.
Thank you.
--
http://osgeo-org.1560.x6.nabble.com/Openlayers-2-13-1-Google-maps-not-showing-recently-Sep-2015-tp5222280p5222341.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
http://lists.osgeo.org/mailman/listinfo/openlayers-dev
Loading...