From 140090ec206a9a713e263bcbb33b97b0ae6dc3eb Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 3 Apr 2007 16:42:19 +0000 Subject: [PATCH] Zoom to features after done loading them. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2992 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/wkt.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/wkt.html b/examples/wkt.html index 8c569c5bbb..220c59ead1 100644 --- a/examples/wkt.html +++ b/examples/wkt.html @@ -87,6 +87,7 @@ function parseWKT() { var element = document.getElementById('wkt'); var collection = wkt.read(element.value); + var bounds; if(collection) { if(collection.constructor != Array) { collection = [collection]; @@ -94,8 +95,14 @@ var features = []; for(var i=0; i 1) ? 's' : ''; element.value = 'Feature' + plural + ' added' } else {