Customizing Google map marker

Hello.
I need to enter a code, in order to use a customized map marker icon, as explained here: Customizing a Google Map: Custom Markers  |  Maps JavaScript API  |  Google Developers
But i’m not sure where should I put this code. Does someone know?

This is the code:
var iconBase = ‘https://maps.google.com/mapfiles/kml/shapes/’;
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: iconBase + ‘icon_image.png’
});

Thank you,
Naama.

1 Like

This topic was automatically closed after 60 days. New replies are no longer allowed.