I've got a wide map with a very small zoom so parts of the earth appear multiple times. If I add a normal marker, it gets multiplied so that every place in the viewport has that same marker on it:
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: 'Hello World!'
});
https://jsfiddle.net/L50thpqr/
However, when I use a custom marker with a path, it only shows up once in the middle:
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: 'Hello World!',
icon: {
fillOpacity: .75,
scale: 1,
strokeColor: 'black',
strokeWeight: 1,
scale: .8,
fillColor: "#fffb70",
path: "M 0,-8.55 -8.55,8.55 8.55,8.55 Z"
}
});
https://jsfiddle.net/q14s2rLk/
My question is how I can get the same behavior for the custom marker so it shows up multiple times, too.