annotate 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
rev   line source
bgneal@820 1 $(document).ready(function() {
bgneal@820 2 var map_div = $('#map-canvas');
bgneal@820 3 if (map_div.length) {
bgneal@820 4 var map_options = {
bgneal@820 5 center: {lat: 15.0, lng: -30.0},
bgneal@820 6 zoom: 2
bgneal@820 7 };
bgneal@820 8 var map = new google.maps.Map(map_div[0], map_options);
bgneal@820 9 }
bgneal@820 10
bgneal@820 11 var add_form = $('#bandmap-add-form');
bgneal@820 12 if (add_form.length) {
bgneal@820 13 }
bgneal@820 14 });