lib/geos/google_maps/api_3.rb
def to_g_marker_api3(marker_options = {}, options = {})
      options = {
        :escape => [],
        :lat_lng_options => {}
      }.merge(options)

      opts = Geos::Helper.camelize_keys(marker_options)
      opts[:position] = self.centroid.to_g_lat_lng(options[:lat_lng_options])
      json = Geos::Helper.escape_json(opts, Geos::GoogleMaps::Api3Constants::UNESCAPED_MARKER_OPTIONS - options[:escape])

      "new google.maps.Marker(#{json})"
    end
def to_g_marker_api3(marker_options = {}, options = {})
      options = {
        :escape => [],
        :lat_lng_options => {}
      }.merge(options)

      opts = Geos::Helper.camelize_keys(marker_options)
      opts[:position] = self.centroid.to_g_lat_lng(options[:lat_lng_options])
      json = Geos::Helper.escape_json(opts, Geos::GoogleMaps::Api3Constants::UNESCAPED_MARKER_OPTIONS - options[:escape])

      "new google.maps.Marker(#{json})"
    end
def to_g_marker_api3 ( marker_options = { } , options = { } ) options = { :escape => [ ] , :lat_lng_options => { } } . merge ( options ) opts = Geos :: Helper . camelize_keys ( marker_options ) opts [ :position ] = self . centroid . to_g_lat_lng ( options [ :lat_lng_options ] ) json = Geos :: Helper . escape_json ( opts , Geos :: GoogleMaps :: Api3Constants :: UNESCAPED_MARKER_OPTIONS - options [ :escape ] ) "new google.maps.Marker(#{json})" end
Returns a new Marker at the centroid of the geometry. The options
 Hash works the same as the Google Maps API MarkerOptions class does,
 but allows for underscored Ruby-like options which are then converted
 to the appropriate camel-cased Javascript options.
Returns a new Marker at the centroid of the geometry . The options Hash works the same as the Google Maps API MarkerOptions class does but allows for underscored Ruby - like options which are then converted to the appropriate camel - cased Javascript options .