Module: Geos::GoogleMaps::Api3::Point

Defined in:
lib/geos/google_maps/api_3.rb

Instance Method Summary collapse

Instance Method Details

#to_g_lat_lng_api3(options = {}) ⇒ Object

Returns a new LatLng.



138
139
140
141
142
143
144
# File 'lib/geos/google_maps/api_3.rb', line 138

def to_g_lat_lng_api3(options = {})
  no_wrap = if options[:no_wrap]
    ', true'
  end

  "new google.maps.LatLng(#{self.lat}, #{self.lng}#{no_wrap})"
end

#to_g_point_api3(options = {}) ⇒ Object

Returns a new Point



147
148
149
# File 'lib/geos/google_maps/api_3.rb', line 147

def to_g_point_api3(options = {})
  "new google.maps.Point(#{self.x}, #{self.y})"
end