Created
September 26, 2020 15:38
-
-
Save anjalbinayak/24649804c262d791c4e779ab21a13c4e 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 marker = new google.maps.Marker({ | |
position: { lat: -34.397, lng: 150.644 }, | |
title:"Custom Marker Image", | |
icon: "new-image.png" | |
}); | |
marker.setMap(map); | |
//you just have to put the location of image file in 'icon' property of object in Marker's constructor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment