lib/gull/polygon.rb in gull-0.2.10 vs lib/gull/polygon.rb in gull-0.2.11

- old
+ new

@@ -45,9 +45,13 @@ "&maptype=#{options[:maptype]}&path=color:#{options[:color]}" \ "|weight:#{options[:weight]}|fillcolor:#{options[:fillcolor]}" \ "|#{coordinates_piped}&key=#{api_key}" end + def to_s + coordinates.map { |pair| pair.join(',') }.join(' ') + end + private def bounds(point, low, high) if point < low || low == 0 low = point