lib/geos/google_maps/api_2.rb
def to_g_marker_api2(marker_options = {}, options = {})
      klass = if options[:short_class]
        'GMarker'
      else
        'google.maps.Marker'
      end

      opts = Geos::Helper.camelize_keys(marker_options)

      "new #{klass}(#{self.centroid.to_g_lat_lng(options)}, #{opts.to_json})"
    end
def to_g_marker_api2(marker_options = {}, options = {})
      klass = if options[:short_class]
        'GMarker'
      else
        'google.maps.Marker'
      end

      opts = Geos::Helper.camelize_keys(marker_options)

      "new #{klass}(#{self.centroid.to_g_lat_lng(options)}, #{opts.to_json})"
    end
def to_g_marker_api2 ( marker_options = { } , options = { } ) klass = if options [ :short_class ] 'GMarker' else 'google.maps.Marker' end opts = Geos :: Helper . camelize_keys ( marker_options ) "new #{klass}(#{self.centroid.to_g_lat_lng(options)}, #{opts.to_json})" end
Returns a new GMarker at the centroid of the geometry. The options
 Hash works the same as the Google Maps API GMarkerOptions class does,
 but allows for underscored Ruby-like options which are then converted
 to the appropriate camel-cased Javascript options.
Returns a new GMarker at the centroid of the geometry . The options Hash works the same as the Google Maps API GMarkerOptions class does but allows for underscored Ruby - like options which are then converted to the appropriate camel - cased Javascript options .