use stable version of google maps API, #30260
authorMark Wells <mark@freeside.biz>
Tue, 1 Dec 2015 04:13:05 +0000 (20:13 -0800)
committerMark Wells <mark@freeside.biz>
Tue, 1 Dec 2015 04:13:05 +0000 (20:13 -0800)
httemplate/elements/polygon.html

index c26e985..41ba653 100644 (file)
@@ -9,7 +9,7 @@ my $vertices_json = $opt{'curr_value'} || '[]';
 <& hidden.html, %opt &>
 <div id="<% $div_id %>" style="height: 600px; width: 600px"></div>
 
-<script src="https://maps.googleapis.com/maps/api/js?libraries=drawing"></script>
+<script src="https://maps.googleapis.com/maps/api/js?libraries=drawing&v=2"></script>
 <script>
 var map;
 var drawingManager;
@@ -21,7 +21,7 @@ function updateFormInput(event) {
     var xy = path.getAt(i);
     vertices[i] = [ xy.lat(), xy.lng() ];
   }
-  console.log(vertices); //XXX
+  if (console) console.log(vertices); //XXX
   $('#<% $field %>').prop('value', JSON.stringify(vertices));
 }