Hi
I’d like to add an image as a custom marker on my google map.
How do I go about editing the default script to do this?
Many thanks
Solved:
// create marker
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: 'DSRU',
icon: 'http://www.example.com/application/static/images/gmap-marker.png'
});
Where do we add that code for the marker? 🙂
Hi)
You must insert this code into js which you have added to webpage.
https://www.advancedcustomfields.com/resources/google-map/
Take a look to the string #79 in jsfiddle –
https://jsfiddle.net/azerphoenix/9tos6ukL/2/
Thanks, i already figured out 🙂
I added multiple custom markers (changeable from admin side) aswell a custom style to the map.
![Multiple Pins on google map](https://image.prntscr.com/image/8_mEZJnoSh2RFW_UFmv53w.png)