Closed muhammadusmanarshad closed 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
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
I didnt see your question on SO because its not properly tagged, please change it.
When I use this method in other controller to get places, Customer marker are shown but not clickable and location title is not shown.
I have also post this questions to Stackoverflow
http://stackoverflow.com/questions/25324280/gmaps4rails-custom-marker-pictures-not-clickable-in-application-method