()
| 159 | new EventEmitter<google.maps.Circle>(); |
| 160 | |
| 161 | ngOnInit() { |
| 162 | if (!this._map._isBrowser) { |
| 163 | return; |
| 164 | } |
| 165 | |
| 166 | this._combineOptions() |
| 167 | .pipe(take(1)) |
| 168 | .subscribe(options => { |
| 169 | if (google.maps.Circle && this._map.googleMap) { |
| 170 | this._initialize(this._map.googleMap, google.maps.Circle, options); |
| 171 | } else { |
| 172 | this._ngZone.runOutsideAngular(() => { |
| 173 | Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then( |
| 174 | ([map, lib]) => { |
| 175 | this._initialize(map, (lib as google.maps.MapsLibrary).Circle, options); |
| 176 | }, |
| 177 | ); |
| 178 | }); |
| 179 | } |
| 180 | }); |
| 181 | } |
| 182 | |
| 183 | private _initialize( |
| 184 | map: google.maps.Map, |
nothing calls this directly
no test coverage detected