view of image in map

parent 56ac094a
......@@ -182,7 +182,8 @@ div .info-product-box {
/*top: 657px;*/
/*left: -552px;*/
top: 55px;
left: -557px;
/* left: -557px; */
left: -610px;
height: 90px;
background: #fff;
width: 240%;
......
......@@ -154,15 +154,19 @@ function erase_input() {
$('#ajax-input').val('');
}
$("#id_polygon").on('keyup', function (e) {
if (e.keyCode == 13) {
// $("#id_polygon").on('keyup', function (e) {
// if (e.keyCode == 13) {
// polygon = $('#id_polygon').val();
// osmap.removePolygon();
// osmap.addWKTPolygon(polygon);
// }
// });
function showPolygon(){
polygon = $('#id_polygon').val();
osmap.removePolygon();
osmap.addWKTPolygon(polygon);
}
});
}
// this function cleans list of available products
function erase_product_list_globe() {
......@@ -358,7 +362,7 @@ $(document).ready(function () {
event.preventDefault();
erase_product_list_globe();
var submit_data = $('#product-form').serialize();
showPolygon();
showWaitingModal()
// 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