Skip to content

Instantly share code, notes, and snippets.

@anjalbinayak
Created September 26, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjalbinayak/2a01d687eee753820152869b81acc262 to your computer and use it in GitHub Desktop.
Save anjalbinayak/2a01d687eee753820152869b81acc262 to your computer and use it in GitHub Desktop.
This gist is used in medium article
var marker1 = new google.maps.Marker({
position:{ lat: -34.397, lng: 150.644 },
title:"Marker 1"
});
marker1.setMap(map);
var marker2 = new google.maps.Marker({
position: { lat: -33.397, lng: 151.644 },
title:"Marker 2"
});
marker2.setMap(map);
// map in the setMap function is the instance of google.maps.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment