Multiple choice technology platforms and products

How do you place a marker on top of the map?

  1. map.addOverlay(new GMarker(point, markerOptions));

  2. map.placeMarker(new Overlay(GMarker(point,markerOptions)))

  3. map.placeMarker(GMarker(myLatitude,myLongitude))

  4. map.addOverlay(new GMarker(point, markerOptions){position:top});

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The addOverlay method is used to place markers and other overlays onto a Google Map. The correct syntax is to create a GMarker object with a point and optional markerOptions, then pass it to map.addOverlay. Options B and C use non-existent methods.