Update examples to read renderer from query string

This commit is contained in:
Tom Payne
2013-01-15 10:26:43 +01:00
parent 4037bafc45
commit 936132cd46
3 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ goog.require('ol.Collection');
goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.Projection');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.source.TiledWMS');
@@ -56,6 +57,7 @@ var map = new ol.Map({
// proj4js because we do not need any transforms.
userProjection: epsg21781,
layers: layers,
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: new ol.View2D({
center: new ol.Coordinate(660000, 190000),