app/models/dataset_setting.rb
def parsed_legend
    parsed_legend = legend.dup
    lng = parsed_legend.delete('long')
    parsed_legend['lng'] = lng
    parsed_legend
  rescue
    nil
  end
# Returns the legend with the format needed for the front end (key long should be lng)
Returns the legend with the format needed for the front end (key long should be lng)
Returns the legend with the format needed for the front end ( key long should be lng )
def parsed_legend
    parsed_legend = legend.dup
    lng = parsed_legend.delete('long')
    parsed_legend['lng'] = lng
    parsed_legend
  rescue
    nil
  end
def parsed_legend parsed_legend = legend . dup lng = parsed_legend . delete ( 'long' ) parsed_legend [ 'lng' ] = lng parsed_legend rescue nil end
Returns the legend with the format needed for the front end (key long should be lng)
Returns the legend with the format needed for the front end ( key long should be lng )