diff options
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)); } |