From 9f0231e58e9e1b7b8d2102630c7d688fd1a473bf Mon Sep 17 00:00:00 2001 From: matjos Date: Wed, 2 Sep 2015 21:05:30 +0200 Subject: [PATCH] added tests to openlayers input --- openlayers/openlayers-tests.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/openlayers/openlayers-tests.ts b/openlayers/openlayers-tests.ts index 3effa928a..009273746 100644 --- a/openlayers/openlayers-tests.ts +++ b/openlayers/openlayers-tests.ts @@ -34,6 +34,7 @@ var geometry: ol.geom.Geometry; var loadingstrategy: ol.LoadingStrategy; var tilegrid: ol.tilegrid.TileGrid; var vector: ol.source.Vector; +var projection: ol.proj.Projection; // // ol.Attribution @@ -161,7 +162,9 @@ var tileLayer: ol.layer.Tile = new ol.layer.Tile({ // // ol.proj // -var projection: ol.proj.Projection; +projection = new ol.proj.Projection({ + code:stringValue, +}); // // ol.Map @@ -174,6 +177,21 @@ var map: ol.Map = new ol.Map({ }); map.beforeRender(preRenderFunction); +// +// ol.source.ImageWMS +// +var imageWMS: ol.source.ImageWMS = new ol.source.ImageWMS({ + serverType: stringValue, + url:stringValue +}); +// +// ol.source.TileWMS +// +var tileWMS: ol.source.TileWMS = new ol.source.TileWMS({ + serverType: stringValue, + url:stringValue +}); + // // ol.animation //