From 88572303fb2e510c0071ef7333fc5494401013d4 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 14 Aug 2012 13:31:41 +0200 Subject: [PATCH] Addressing @tschaub's review comment. --- examples/wps-client.js | 8 ++++---- tests/WPSProcess.html | 13 +++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/wps-client.js b/examples/wps-client.js index 304c59271a..511d491ea0 100644 --- a/examples/wps-client.js +++ b/examples/wps-client.js @@ -11,12 +11,12 @@ function init() { layers: [new OpenLayers.Layer.Vector()] }); - var features = [new OpenLayers.Format.WKT().read( + var features = [new OpenLayers.Feature.Vector(OpenLayers.Geometry.fromWKT( 'LINESTRING(117 22,112 18,118 13, 115 8)' - )]; - var geometry = (new OpenLayers.Format.WKT().read( + ))]; + var geometry = OpenLayers.Geometry.fromWKT( 'POLYGON((110 20,120 20,120 10,110 10,110 20),(112 17,118 18,118 16,112 15,112 17))' - )).geometry; + ); map.baseLayer.addFeatures(features); map.baseLayer.addFeatures([new OpenLayers.Feature.Vector(geometry)]); diff --git a/tests/WPSProcess.html b/tests/WPSProcess.html index 856b3c8aa6..f668ca3d79 100644 --- a/tests/WPSProcess.html +++ b/tests/WPSProcess.html @@ -3,6 +3,7 @@