Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个案例,如果有人没有注册,我想用绿色显示标记,如果有人在城市注册,我想用红色显示标记。我已经浏览了文档,但找不到与它相关的任何内容。
如何根据我的条件更改标记的颜色?
宝石不包括标记颜色样式。我只看到一个解决方案:
为每种标记创建标记图片
包含您的逻辑gmaps4rails_marker_picture以呈现适当的逻辑
gmaps4rails_marker_picture