Google-Maps-for-Rails icon indicating copy to clipboard operation
Google-Maps-for-Rails copied to clipboard

Custom image markers are not clickable

Open fields opened this issue 9 years ago • 4 comments

I am using the marker.picture setting in Gmaps4rails.build_markers to add custom marker images for some markers. If I do that, it seems to work fine and the images are displayed, but the resulting markers are not clickable for the info popup. Is something else required to reactivate this with the use of custom images?

fields avatar Aug 04 '15 13:08 fields

I dont see what you mean, if you check http://apneadiving.github.io/ One Marker section, it works fine.

apneadiving avatar Aug 04 '15 13:08 apneadiving

Had the same issue. Make sure the height/width of your custom markers are integers, not strings. Fixed it for me

hamishcundy avatar Oct 07 '15 08:10 hamishcundy

@hamishcundy that fixed it for me too, thank you!

Yanchek99 avatar Feb 09 '16 20:02 Yanchek99

@hamishcundy +1

rutgerg avatar Aug 03 '16 07:08 rutgerg