MCPcopy Create free account
hub / github.com/googlemaps/js-api-loader / initMap

Function initMap

test-bundlers/webpack-test/src/index.js:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9// Initialize the map
10async function initMap() {
11 const { Map } = await importLibrary("maps");
12
13 return new Map(document.getElementById("map"), {
14 center: { lat: 37.7749, lng: -122.4194 },
15 zoom: 12,
16 });
17}
18
19// Load markers
20async function addMarkers(map) {

Callers 1

index.jsFile · 0.70

Calls 1

importLibraryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…