I am currently trying to add custom marker for for a map that I am using and I was wondering if anyone has had managed to add a customer marker when using gmap.js?
map.addMarker({
lat: latlng.lat(),
lng: latlng.lng(),
icon: "/images/mapicon.png"
});
or we can initialize:
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: 'schools_maps.png',
shadow: 'schools_maps.shadow.png'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With