diff bandmap/static/js/bandmap.js @ 820:9a0df7bd2409

Bandmap application work in progress. Model defined. Map is displaying. Initial display of add form.
author Brian Neal <bgneal@gmail.com>
date Sun, 21 Sep 2014 18:20:29 -0500
parents
children 71db8076dc3d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bandmap/static/js/bandmap.js	Sun Sep 21 18:20:29 2014 -0500
@@ -0,0 +1,14 @@
+$(document).ready(function() {
+   var map_div = $('#map-canvas');
+   if (map_div.length) {
+      var map_options = {
+         center: {lat: 15.0, lng: -30.0},
+         zoom: 2
+      };
+      var map = new google.maps.Map(map_div[0], map_options);
+   }
+
+   var add_form = $('#bandmap-add-form');
+   if (add_form.length) {
+   }
+});