Streaming live at 10am (PST)

Customizing Google map marker


#1

Hello.
I need to enter a code, in order to use a customized map marker icon, as explained here: https://developers.google.com/maps/documentation/javascript/custom-markers
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.


#2

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