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

Method _assertInitialized

src/google-maps/google-map/google-map.ts:531–538  ·  view source on GitHub ↗

Asserts that the map has been initialized.

()

Source from the content-addressed store, hash-verified

529
530 /** Asserts that the map has been initialized. */
531 private _assertInitialized(): asserts this is {googleMap: google.maps.Map} {
532 if (!this.googleMap && (typeof ngDevMode === 'undefined' || ngDevMode)) {
533 throw Error(
534 'Cannot access Google Map information before the API has been initialized. ' +
535 'Please wait for the API to load before trying to interact with it.',
536 );
537 }
538 }
539}
540
541const cssUnitsPattern = /([A-Za-z%]+)$/;

Callers 15

fitBoundsMethod · 0.95
panByMethod · 0.95
panToMethod · 0.95
panToBoundsMethod · 0.95
getBoundsMethod · 0.95
getCenterMethod · 0.95
getClickableIconsMethod · 0.95
getHeadingMethod · 0.95
getMapTypeIdMethod · 0.95
getProjectionMethod · 0.95
getStreetViewMethod · 0.95
getTiltMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected