openlayers/openlayers — pull request #1243 by kevbradwick (2014-02-04 12:23:36+00:00)
Title: Google maps webkit svg bug

This PR addresses the issue outlined in https://github.com/openlayers/openlayers/issues/1207.

I've added a manual test that demonstrates the issue as well as a fix. However, I'm not 100% sure the fix is in the right place. The problem is solved by turning on GPU acceleration when Google Maps V3 base layer is present.

I could have put a style declaration in the default theme css but I guess not everyone will include it when using OL. So, I've put some logic in the SVG renderer. It checks for the presence of google.maps.Map and if present, adds the style declaration to turn on GPU acceleration. Part of me thinks it shouldn't be here - the render shouldn't need to know about any external global objects i.e. google, but couldn't think of a better place to put it.