I need to style the map markers shades of color based on a scoring mechanism. I believe that rich markers is the best way for me to do so, however I'm having some trouble figuring out where in my workflow I need to add it in.
In a previous application (1.xx version of this gem) I was able to use the gmaps4rails_marker_picture method, but it appears this only works when using the gmaps view helper and doesn't work when displaying via json. Is there a preferred method for me to get this working with a json workflow?
I need to style the map markers shades of color based on a scoring mechanism. I believe that rich markers is the best way for me to do so, however I'm having some trouble figuring out where in my workflow I need to add it in.
In a previous application (1.xx version of this gem) I was able to use the gmaps4rails_marker_picture method, but it appears this only works when using the gmaps view helper and doesn't work when displaying via json. Is there a preferred method for me to get this working with a json workflow?
My controller action looks like
And my js looks like
I tried the method from 'Changing Handler Behavior' here https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Change-handler-behavior , but I'm getting an error when loading the richmarkers.js file.
Any help would be greatly appreciated.