ruby-on-railsruby-on-rails-3.1gmaps4rails

Getting different marker colors based on conditions gmaps4rails


I have a case where I want to show the marker in green color if someone is not registered and red color if someone is registered in a city. I have gone through the doc but could not find anything related to it.

How do I go about changing the colors of markers as per my conditions?


Solution

  • The gem doesn't include marker color styling. I see only one solution: