MCPcopy Create free account
hub / github.com/angular/components / _combineOptions

Method _combineOptions

src/google-maps/map-marker/map-marker.ts:478–490  ·  view source on GitHub ↗

Creates a combined options object using the passed-in options and the individual inputs.

()

Source from the content-addressed store, hash-verified

476
477 /** Creates a combined options object using the passed-in options and the individual inputs. */
478 private _combineOptions(): google.maps.MarkerOptions {
479 const options = this._options || DEFAULT_MARKER_OPTIONS;
480 return {
481 ...options,
482 title: this._title || options.title,
483 position: this._position || options.position,
484 label: this._label || options.label,
485 clickable: this._clickable ?? options.clickable,
486 map: this._googleMap.googleMap,
487 icon: this._icon || options.icon,
488 visible: this._visible ?? options.visible,
489 };
490 }
491
492 private _assertInitialized(): asserts this is {marker: google.maps.Marker} {
493 if (typeof ngDevMode === 'undefined' || ngDevMode) {

Callers 2

_initializeMethod · 0.95
ngOnChangesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected