~fix svg functions ui
authorhiro
Wed, 24 Aug 2011 15:42:01 -0400
branchui
changeset 44 6060adf1231b
parent 39 48ee87371af2
~fix svg functions
src/main/resources/templates/index.html
--- a/src/main/resources/templates/index.html	Tue Aug 23 17:56:42 2011 -0400
+++ b/src/main/resources/templates/index.html	Wed Aug 24 15:42:01 2011 -0400
@@ -10,7 +10,6 @@
 	
 	<script src="http://www.openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
 	<script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js" type="text/javascript"></script>
-	
 	<script type="text/javascript">
 		var zoom=13
 		var map;
@@ -55,7 +54,8 @@
 				}
 			};
 			http.send(null);
-			initGraphs();	
+			initGraphs();
+			drawGraphs(jsonData);	
 			centerMapOnTrail(jsonData);
 		}
 
@@ -143,6 +143,10 @@
 			speed_graph.appendChild(svg);
 		}
 
+		function drawGraphs(jsonData){
+			console.log(jsonData);
+		}
+
 
 		
 	</script>