view of image in map

parent 56ac094a
...@@ -182,7 +182,8 @@ div .info-product-box { ...@@ -182,7 +182,8 @@ div .info-product-box {
/*top: 657px;*/ /*top: 657px;*/
/*left: -552px;*/ /*left: -552px;*/
top: 55px; top: 55px;
left: -557px; /* left: -557px; */
left: -610px;
height: 90px; height: 90px;
background: #fff; background: #fff;
width: 240%; width: 240%;
......
...@@ -154,15 +154,19 @@ function erase_input() { ...@@ -154,15 +154,19 @@ function erase_input() {
$('#ajax-input').val(''); $('#ajax-input').val('');
} }
$("#id_polygon").on('keyup', function (e) { // $("#id_polygon").on('keyup', function (e) {
if (e.keyCode == 13) { // if (e.keyCode == 13) {
polygon = $('#id_polygon').val(); // polygon = $('#id_polygon').val();
osmap.removePolygon(); // osmap.removePolygon();
osmap.addWKTPolygon(polygon); // osmap.addWKTPolygon(polygon);
} // }
}); // });
function showPolygon(){
polygon = $('#id_polygon').val();
osmap.removePolygon();
osmap.addWKTPolygon(polygon);
}
// this function cleans list of available products // this function cleans list of available products
function erase_product_list_globe() { function erase_product_list_globe() {
...@@ -358,7 +362,7 @@ $(document).ready(function () { ...@@ -358,7 +362,7 @@ $(document).ready(function () {
event.preventDefault(); event.preventDefault();
erase_product_list_globe(); erase_product_list_globe();
var submit_data = $('#product-form').serialize(); var submit_data = $('#product-form').serialize();
showPolygon();
showWaitingModal() showWaitingModal()
// product request to DB // product request to DB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment