Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google maps webkit svg bug #1243

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
moved gpu acceleration fix to style.css
Kevin Bradwick committed Feb 4, 2014
commit 1b648a6154e7189b10824f49ab9e4a2988948372
4 changes: 0 additions & 4 deletions lib/OpenLayers/Renderer/SVG.js
Original file line number Diff line number Diff line change
@@ -450,10 +450,6 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
createRenderRoot: function() {
var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");
svg.style.display = "block";

if (window.google && window.google.maps && window.google.maps.Map) {
svg.style['-webkit-transform'] = 'translateZ(0)';
}
return svg;
},

5 changes: 5 additions & 0 deletions theme/default/style.css
Original file line number Diff line number Diff line change
@@ -534,6 +534,11 @@ div.olControlTextButtonPanel.vertical .olButton:last-child {
perspective: 1000;
}

/* Turn on GPU acceleration for webkit when Google Maps V3 base layer is present */
.olForeignContainer svg {
-webkit-transform: translateZ(0);
}

/* when replacing tiles, do not show tile and backbuffer at the same time */
.olTileReplacing {
display: none;