Skip to content

Commit

Permalink
Allow testing of specific renderers via '?renderer=<name>'
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Jan 24, 2012
1 parent def2085 commit ac1eee6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/transform-feature.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@
fillOpacity: 1,
strokeColor: "black"
}, {context: context});


// allow testing of specific renderers via "?renderer=Canvas", etc
var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;
renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;

// the layer that we want to transform features on
var vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry", {
styleMap: new OpenLayers.StyleMap({
"transform": style
})
}),
renderers: renderer
});

// create the TransformFeature control, using the renderIntent
Expand Down

0 comments on commit ac1eee6

Please sign in to comment.