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 //