I am using gmap3 and have added custom pins and pin shadow to my map, but I am having problems in getting the icon and the shadow to align. My code is:
marker: {
options: {
icon: '/media/pins/pin.png',
iconSize: [26, 30],
shadow: '/media/pins/pin_shadow.png',
shadowSize: [44, 30],
iconAnchor: [13, 70],
},
Haven't been able to find any examples online, so I am not sure if the problem is with what I call the option (ex: iconSize) or with the way I serve the value to it (ex: [13, 70])
As Duncan points out the solution is to use the MarkerImage class. And the way to do that is: