schleyfox-ruby_kml 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/kml/feature.rb CHANGED
@@ -154,8 +154,8 @@ module KML #:nodoc:
154
154
  end
155
155
  end
156
156
 
157
- require 'kml/placemark'
158
157
  require 'kml/container'
158
+ require 'kml/placemark'
159
159
  require 'kml/overlay'
160
160
 
161
161
  require 'kml/snippet'
data/lib/kml/folder.rb CHANGED
@@ -9,4 +9,4 @@ module KML #:nodoc:
9
9
  }
10
10
  end
11
11
  end
12
- end
12
+ end
data/lib/kml/placemark.rb CHANGED
@@ -23,12 +23,13 @@
23
23
  # </Placemark>
24
24
 
25
25
  module KML
26
- class Placemark < Feature
26
+ class Placemark < Container
27
27
  attr_accessor :geometry
28
28
 
29
29
  def render(xm=Builder::XmlMarkup.new(:indent => 2))
30
30
  xm.Placemark {
31
31
  super
32
+ features.each { |f| f.render(xm) }
32
33
  geometry.render(xm) unless geometry.nil?
33
34
  }
34
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schleyfox-ruby_kml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aeden, schleyfox, xaviershay