I'm new to using vuejs and I am currently experimenting with vue-google-maps in order to display markers. I am interested in learning how to customize the marker icon. I attempted to add an icon to the marker tag, but it did not have the desired effect. Below is my code:
Within my template, I have:
<marker :position.sync="m.position" :icon.sync="m.icon" v-for="m in markers"></marker>
And here is my script:
export default {
data: function data() {
return {
center: { lat: 33.533818415851705, lng: -3.746186887500016 },
zoom: 7,
markers: [{position: { lat: 34.263, lng: -6.582 }, icon:"../assets/marker-icon.png"}]
};}};
Could anyone provide some guidance on this matter?