Module: Geos::GoogleMaps::Api2::GeometryCollection

Includes:
Geos::GoogleMaps::ApiCommon::UrlValueBounds
Defined in:
lib/geos/google_maps/api_2.rb

Instance Method Summary collapse

Methods included from Geos::GoogleMaps::ApiCommon::UrlValueBounds

#to_g_url_value

Instance Method Details

#to_g_polygon_api2(polygon_options = {}, options = {}) ⇒ Object

Returns a Ruby Array of GPolygons for each geometry in the collection.



182
183
184
185
186
# File 'lib/geos/google_maps/api_2.rb', line 182

def to_g_polygon_api2(polygon_options = {}, options = {})
  self.collect do |p|
    p.to_g_polygon_api2(polygon_options, options)
  end
end

#to_g_polyline_api2(polyline_options = {}, options = {}) ⇒ Object

Returns a Ruby Array of GPolylines for each geometry in the collection.



174
175
176
177
178
# File 'lib/geos/google_maps/api_2.rb', line 174

def to_g_polyline_api2(polyline_options = {}, options = {})
  self.collect do |p|
    p.to_g_polyline_api2(polyline_options, options)
  end
end