Using the google maps API, I have a map with a few close markers that are custom icons. Each marker is 41px by 50px, but the clickable area for each is 200px by 200px. Screenshot of map with marker and it's clickable area
Here is the code that creates the markers:
new google.maps.Marker({
map: map,
position: pos,
tags: tags,
id: id,
animation: google.maps.Animation.DROP,
icon: {
path: 'M2.82467,37.476c.52516,1.27507,1.1015,2.54515,1.7189,3.80431.78478,1.6005,1.63589,3.18336,2.53256,4.73642S8.915,49.093,9.882,50.57435A141.80266,141.80266,0,0,0,27.20482,71.85121c.00036-.00035,17.10761-16.70763,24.38424-34.37524a34.60259,34.60259,0,0,0,1.82468-10.35353A26.17876,26.17876,0,0,0,27.20891,1.00018V1l-.002.00009L27.20482,1v.00018A26.17876,26.17876,0,0,0,1,27.12244m9.00957.23264a17.17136,17.17136,0,1,1,2.13034,8.304',
fillOpacity: 1,
fillColor: iconFill,
strokeColor: iconStroke,
strokeWeight: 2,
scale: 0.7,
size: new google.maps.Size(41, 50),
scaledSize: new google.maps.Size(41, 50),
anchor: {
x: 25,
y: 75
}
}
})
I have tried using the size
and scaledSize
attributes to change it, but they have done nothing.
Is there any way I can reduce the size of the clickable area?