diff --git a/application/default/views/scripts/search/advance.phtml b/application/default/views/scripts/search/advance.phtml index 306334a8..70e861f4 100644 --- a/application/default/views/scripts/search/advance.phtml +++ b/application/default/views/scripts/search/advance.phtml @@ -93,10 +93,10 @@ function InputValueChange(){ var p4=new TLngLat($(input.east).val(),$(input.south).val()); map.setViewport(new Array(p1,p2,p3,p4)); - var west=$(input.west).val(); - var east=$(input.east).val(); - var north=$(input.north).val(); - var south=$(input.south).val(); + var west=parseFloat($(input.west).val()); + var east=parseFloat($(input.east).val()); + var north=parseFloat($(input.north).val()); + var south=parseFloat($(input.south).val()); var bounds = new TBounds(west,south,east,north); rect = new TRect(bounds); map.addOverLay(rect);