From 5a824d6ca873f9409b2f7276615a0fd2a370d692 Mon Sep 17 00:00:00 2001 From: Curtis Date: Thu, 23 Mar 2017 10:10:08 +0000 Subject: [PATCH] Adding LatLngLiteral to googlemaps CircleOptions.center --- googlemaps/googlemaps-tests.ts | 23 +++++++++++++++++++++++ googlemaps/index.d.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/googlemaps/googlemaps-tests.ts b/googlemaps/googlemaps-tests.ts index 0be531a89f..6397aab58b 100644 --- a/googlemaps/googlemaps-tests.ts +++ b/googlemaps/googlemaps-tests.ts @@ -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 +}); diff --git a/googlemaps/index.d.ts b/googlemaps/index.d.ts index e8d6d8dc2b..5f25ea0cab 100644 --- a/googlemaps/index.d.ts +++ b/googlemaps/index.d.ts @@ -999,7 +999,7 @@ declare namespace google.maps { } export interface CircleOptions { - center?: LatLng; + center?: LatLng|LatLngLiteral; clickable?: boolean; draggable?: boolean; editable?: boolean;