Module: Geos::GoogleMaps::Api2::GeometryCollection
- Defined in:
- lib/geos/google_maps/api_2.rb
Instance Method Summary collapse
-
#to_g_polygon_api2(polygon_options = {}, options = {}) ⇒ Object
Returns a Ruby Array of GPolygons for each geometry in the collection.
-
#to_g_polyline_api2(polyline_options = {}, options = {}) ⇒ Object
Returns a Ruby Array of GPolylines for each geometry in the collection.
Methods included from Geos::GoogleMaps::ApiCommon::UrlValueBounds
#to_g_url_value, #to_g_url_value_point
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( = {}, = {}) self.collect do |p| p.to_g_polygon_api2(, ) 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( = {}, = {}) self.collect do |p| p.to_g_polyline_api2(, ) end end |