8 lut 2013

Rysowanie Rectandle na mapach googla

let bounds=new google.maps.LatLngBounds();
bounds.extend(position);
let rect = new google.maps.Rectangle({map, bounds, strokeColor: '#FF0000', strokeOpacity: 1.0, strokeWeight: 1});
bounds.extend(position);
rect.setBounds(this.bounds);