helper.rb

Path: lib/mapstraction_plugin/helper.rb
Last Update: Fri Jul 21 11:30:09 Romance Daylight Time 2006

Methods

Public Class methods

Creates a GMarker object from a georuby point. Accepts the same options as the GMarker constructor. Assumes the points of the line strings are stored in Longitude(x)/Latitude(y) order.

[Source]

   # File lib/mapstraction_plugin/helper.rb, line 3
3:   def self.from_georuby(point,options = {})
4:     Marker.new([point.y,point.x],options)
5:   end

Creates a GLatLng object from a georuby point. Assumes the points of the line strings are stored in Longitude(x)/Latitude(y) order.

[Source]

    # File lib/mapstraction_plugin/helper.rb, line 10
10:   def self.from_georuby(point)
11:     LatLonPoint.new([point.y,point.x])
12:   end

[Validate]