From a006ea8fc9628c788b5df8fb854fba84c697afdd Mon Sep 17 00:00:00 2001 From: Arvind Date: Thu, 7 Jun 2012 19:20:20 +0530 Subject: [PATCH] Push after doing merges --- myVector.js | 6 ++++++ openlayers.html | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/myVector.js b/myVector.js index 7dc358e..f666c96 100644 --- a/myVector.js +++ b/myVector.js @@ -227,9 +227,15 @@ function myfeatureadded(myObj) if(labelFeature.attributes['name']) { //console.log(myObj.feature.geometry.bounds.top); Use this to get the bounds. + top = myObj.feature.geometry.bounds.top; + bottom = myObj.feature.geometry.bounds.bottom; + left = myObj.feature.geometry.bounds.left; + right = myObj.feature.geometry.bounds.right; + name = labelFeature.attributes['name']; map.addLayer(vectorLayer); vectorLayer.drawFeature(labelFeature); vectorLayer.addFeatures([labelFeature]); + annotationTree(); } else myObj.feature.destroy(); diff --git a/openlayers.html b/openlayers.html index fced784..c47a083 100644 --- a/openlayers.html +++ b/openlayers.html @@ -1,15 +1,15 @@ - - - - + + + + + + + + +