module Geos::GoogleMaps::Api3::Point

Public Instance Methods

to_g_lat_lng_api3(options = {}) click to toggle source

Returns a new LatLng.

# File lib/geos/google_maps/api_3.rb, line 140
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 = {}) click to toggle source

Returns a new Point

# File lib/geos/google_maps/api_3.rb, line 149
def to_g_point_api3(options = {})
  "new google.maps.Point(#{self.x}, #{self.y})"
end