Module: Geos::GoogleMaps::Api2::Polygon

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, #to_g_url_value_point

Instance Method Details

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

Returns a GPolygon of the exterior ring of the Polygon. This does not take into consideration any interior rings the Polygon may have.



160
161
162
# File 'lib/geos/google_maps/api_2.rb', line 160

def to_g_polygon_api2(polygon_options = {}, options = {})
  self.exterior_ring.to_g_polygon_api2(polygon_options, options)
end

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

Returns a GPolyline of the exterior ring of the Polygon. This does not take into consideration any interior rings the Polygon may have.



153
154
155
# File 'lib/geos/google_maps/api_2.rb', line 153

def to_g_polyline_api2(polyline_options = {}, options = {})
  self.exterior_ring.to_g_polyline_api2(polyline_options, options)
end