diff --git a/single.php b/single.php index a61a41c..5900446 100644 --- a/single.php +++ b/single.php @@ -115,9 +115,10 @@ marker.setVisible(true); bounds.extend(marker.getPosition()); } - this.map.fitBounds(bounds); - if(this.map.getZoom() > 15) - this.map.setZoom(15); + map.fitBounds(bounds); + if(map.getZoom() > 15){ + map.setZoom(15); + } }