MCPcopy Index your code
hub / github.com/angular/components / ngOnInit

Method ngOnInit

src/google-maps/map-circle/map-circle.ts:161–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

_combineOptionsMethod · 0.95
_initializeMethod · 0.95
_resolveMapMethod · 0.80

Tested by

no test coverage detected