I'm wondering is there any way to add custom marker image to my .js file? For exampe I create custom field in my admin area to upload marker image. Now I want to use it in my .js file
var mapMarker = new google.maps.Marker({
position: new google.maps.LatLng(x, y),
map: new google.maps.Map(mapElement, mapOptions),
icon: 'MY ICON HERE', <- here I want to add my icon
title: 'Title'
});
How can I do it?