Merge pull request #15330 from curtis-h/master

Adding LatLngLiteral to googlemaps CircleOptions.center
This commit is contained in:
Paul van Brenk
2017-03-23 15:56:23 -07:00
committed by GitHub
2 changed files with 24 additions and 1 deletions

View File

@@ -267,3 +267,26 @@ var rectangle = new google.maps.Rectangle({
west: -116.251
}
});
/***** Circles *****/
// circleOptions with LatLng center
var circle1 = new google.maps.Circle({
center: new google.maps.LatLng(59.327, 18.067),
radius: 20,
fillColor: '#FF0000',
strokeColor: '#FF0000',
fillOpacity: 0.35,
strokeOpacity: 0.5,
strokeWeight: 1
});
// circleOptions with LatLngLiteral center
var circle2 = new google.maps.Circle({
center: {lat: 59.327, lng: 18.067},
radius: 20,
fillColor: '#FF0000',
strokeColor: '#FF0000',
fillOpacity: 0.35,
strokeOpacity: 0.5,
strokeWeight: 1
});

View File

@@ -999,7 +999,7 @@ declare namespace google.maps {
}
export interface CircleOptions {
center?: LatLng;
center?: LatLng|LatLngLiteral;
clickable?: boolean;
draggable?: boolean;
editable?: boolean;