Sha256: 52183c3f5bd28f050dea6568879171c87f5c04e20ee8d58e74cb46a8724154ec

Contents?: true

Size: 500 Bytes

Versions: 11

Compression:

Stored size: 500 Bytes

Contents

# Here we redefine the map outline color using a helper and
# specify the heat map ranges using the handy dandy heat_range component...
<%= map :us%>
  # randomizes heat map base color
  <% color = random_color %>
      
  # overrides state outline with color from helper
  <%=config :outline_color %>
    color: <%= color %>
    
  <%=config :heat_range %>
    base_color:   <%= color %>
    min:          0
    max:          100
    step:         10
    color_step:   90
    color_method: darken_by

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
derailed-ziya-2.1.0 examples/maps/public/maps/themes/default/us_map_2.yml
derailed-ziya-2.1.1 examples/maps/public/maps/themes/default/us_map_2.yml
derailed-ziya-2.1.2 examples/maps/public/maps/themes/default/us_map_2.yml
derailed-ziya-2.1.3 examples/maps/public/maps/themes/default/us_map_2.yml
derailed-ziya-2.1.4 examples/maps/public/maps/themes/default/us_map_2.yml
derailed-ziya-2.1.5 examples/maps/public/maps/themes/default/us_map_2.yml
ziya-2.3.0 examples/maps/public/maps/themes/default/us_map_2.yml
ziya-2.1.9 examples/maps/public/maps/themes/default/us_map_2.yml
ziya-2.1.8 examples/maps/public/maps/themes/default/us_map_2.yml
ziya-2.1.7 examples/maps/public/maps/themes/default/us_map_2.yml
ziya-2.1.6 examples/maps/public/maps/themes/default/us_map_2.yml