Which is the method you must call immediately after using the map constructor?
-
map.initializeMap("maps","center");
-
map.createMapContainer(new google.maps.centerLatLng("1","-120"))
-
GMapApi.static.Initialize();
-
map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13);
The setCenter method is required immediately after creating a map using the Google Maps constructor to specify the map's center point and zoom level. Without this, the map would not know where to focus. Options A, B, and C either use incorrect method names or improper syntax.
In the (older) Google Maps JavaScript API, after constructing the map object you must call setCenter() (e.g., map.setCenter(new google.maps.LatLng(lat, lng), zoom)) to position and zoom the map — the constructor alone doesn't render a usable view without a center/zoom being set immediately after. That matches the correct answer. The other options aren't real API calls: initializeMap(), createMapContainer(), and GMapApi.static.Initialize() are not methods in the Google Maps API — they appear to be distractors invented to resemble plausible-sounding method names. Only setCenter() is an actual required call after map construction.