Closed mtc2013 closed 9 years ago
hard to tell, looks like valid code and zIndex
was properly handled by this version.
I dont know
This commit worked for our particular purposes: https://github.com/mtc2013/LocalSupport/commit/6f683b69062499abf4877e8998a8e08f605347c4
Ah ok I understand now, did you try:
marker.json({ zindex: org.send(:not_updated_recently_or_has_no_owner?) ? 1 : 0 })
No but if it works, that's better.
Is there a way to do this from the ruby side? I tried this: def gmaps4rails_marker_picture return { "zIndex" => 0, "picture" => "/assets/redcircle.png" } if not_updated_recently_or_has_no_owner return {"zIndex" => 1} end
But it didn't change anything, from what I can see, except insert those values in the DOM.