apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.27k stars 382 forks source link

Gmaps4rails custom marker pictures not clickable in application method #449

Closed muhammadusmanarshad closed 10 years ago

muhammadusmanarshad commented 10 years ago

When I use this method in other controller to get places, Customer marker are shown but not clickable and location title is not shown.

def getPlaces location hash = Gmaps4rails.build_markers(location) do |location, marker| marker.lat location.latitude marker.lng location.longitude marker.picture({ marker_anchor: [40, 58], url: "# {(Placescategory.find(location.placescategory_id).icon.url)}", width: "32", height: "37" }) marker.title "#{Placescategory.find_by_id(location.placescategory_id).title}" end

return hash end

I have also post this questions to Stackoverflow

http://stackoverflow.com/questions/25324280/gmaps4rails-custom-marker-pictures-not-clickable-in-application-method

apneadiving commented 10 years ago

I didnt see your question on SO because its not properly tagged, please change it.