Created
September 26, 2020 15:30
-
-
Save anjalbinayak/2a01d687eee753820152869b81acc262 to your computer and use it in GitHub Desktop.
This gist is used in medium article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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