Skip to content

Commit

Permalink
Fix incompatibility with Google Maps API > 3.20
Browse files Browse the repository at this point in the history
Due to a change in the Google Maps API the Google Street Map would not
load. See openlayers/openlayers#1450. While
this fix patches the OpenLayers library it is not expected to be
overwritten as this version is no longer under development.
  • Loading branch information
JimBacon committed Sep 3, 2015
1 parent c29f8ad commit 730d9b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions js/OpenLayers-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -64316,11 +64316,10 @@ OpenLayers.Layer.Google.v3 = {
me.setGMapVisibility(me.getVisibility());
me.moveTo(me.map.getCenter());
});
} else {
map.div.appendChild(container);
cache.googleControl.appendChild(map.viewPortDiv);
google.maps.event.trigger(this.mapObject, 'resize');
}
map.div.appendChild(container);
cache.googleControl.appendChild(map.viewPortDiv);
google.maps.event.trigger(this.mapObject, 'resize');
}
this.mapObject.setMapTypeId(type);
} else if (cache.googleControl.hasChildNodes()) {
Expand Down
4 changes: 2 additions & 2 deletions js/OpenLayers-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/OpenLayers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 730d9b5

@JimBacon
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch affects the drawing of report maps and so was followed up with Indicia-Team/client_helpers@5477eec

Please sign in to comment.