Commit a006ea8fc9628c788b5df8fb854fba84c697afdd

  • avatar
  • arvind
  • Thu Jun 07 19:20:20 IST 2012
Push after doing merges
  
227227 if(labelFeature.attributes['name'])
228228 {
229229 //console.log(myObj.feature.geometry.bounds.top); Use this to get the bounds.
230 top = myObj.feature.geometry.bounds.top;
231 bottom = myObj.feature.geometry.bounds.bottom;
232 left = myObj.feature.geometry.bounds.left;
233 right = myObj.feature.geometry.bounds.right;
234 name = labelFeature.attributes['name'];
230235 map.addLayer(vectorLayer);
231236 vectorLayer.drawFeature(labelFeature);
232237 vectorLayer.addFeatures([labelFeature]);
238 annotationTree();
233239 }
234240 else
235241 myObj.feature.destroy();
  
11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
22<html xmlns="http://www.w3.org/1999/xhtml"
33 <head>
4 <script type="text/javascript">
5 function annotationTree() {
6 tree_div = document.getElementById('annotation-tree');
7 tree_div.style.display = 'block';
8 }
9 </script>
10 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
11 <script type="text/javascript" src="./jit.js"></script>
12 <script type="text/javascript" src="./tree.js"></script>
4 <!-- <script type="text/javascript"> -->
5 <!-- function annotationTree() { -->
6 <!-- tree_div = document.getElementById('annotation-tree'); -->
7 <!-- tree_div.style.display = 'block'; -->
8 <!-- } -->
9 <!-- </script> -->
10 <!-- <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
11 <!-- <script type="text/javascript" src="./jit.js"></script> -->
12 <!-- <script type="text/javascript" src="./tree.js"></script> -->
1313 <style type='text/css'>
1414 #annotation-tree {
1515 position:fixed;
3636 <script src="http://www.openlayers.org/api/2.11/OpenLayers.js" type="text/javascript"></script>
3737 <script type="text/javascript" src="myVector.js"></script>
3838 </head>
39<body onload="init();" onclick="annotationTree()">
39<body onload="init();inits();">
4040 <div id="header"><h1>Lepakshi Mural</h1></div>
4141 <div id="subheader">Generated by <a href="http://www.maptiler.org/">MapTiler</a><a href="http://www.klokan.cz/projects/gdal2tiles/">GDAL2Tiles</a>, Copyright &copy; 2008 <a href="http://www.klokan.cz/">Klokan Petr Pridal</a>, <a href="http://www.gdal.org/">GDAL</a> &amp; <a href="http://www.osgeo.org/">OSGeo</a> <a href="http://code.google.com/soc/">GSoC</a>
4242 <!-- PLEASE, LET THIS NOTE ABOUT AUTHOR AND PROJECT SOMEWHERE ON YOUR WEBSITE, OR AT LEAST IN THE COMMENT IN HTML. THANK YOU -->