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

Method _assertInitialized

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

Asserts that the map has been initialized.

()

Source from the content-addressed store, hash-verified

533
534 /** Asserts that the map has been initialized. */
535 private _assertInitialized(): asserts this is {googleMap: google.maps.Map} {
536 if (!this.googleMap && (typeof ngDevMode === 'undefined' || ngDevMode)) {
537 throw Error(
538 'Cannot access Google Map information before the API has been initialized. ' +
539 'Please wait for the API to load before trying to interact with it.',
540 );
541 }
542 }
543}
544
545const 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