mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-07 08:58:49 +08:00
Merge pull request #15330 from curtis-h/master
Adding LatLngLiteral to googlemaps CircleOptions.center
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
2
googlemaps/index.d.ts
vendored
2
googlemaps/index.d.ts
vendored
@@ -999,7 +999,7 @@ declare namespace google.maps {
|
||||
}
|
||||
|
||||
export interface CircleOptions {
|
||||
center?: LatLng;
|
||||
center?: LatLng|LatLngLiteral;
|
||||
clickable?: boolean;
|
||||
draggable?: boolean;
|
||||
editable?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user