diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-30 20:13:05 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-30 20:13:05 -0800 |
commit | 1d9bee7e321b4ec2db3250af5f4d9240725b1974 (patch) | |
tree | 44c5aa451f00c0d361b7bd64e690a230e4806708 /httemplate/elements | |
parent | 17c42abd0c3c836c3ae511867f1cac2417b6907e (diff) |
use stable version of google maps API, #30260
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/polygon.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/elements/polygon.html b/httemplate/elements/polygon.html index c26e98546..41ba65374 100644 --- a/httemplate/elements/polygon.html +++ b/httemplate/elements/polygon.html @@ -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)); } |