Module: RailsGoogleMap::MapHelper

Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/rails_google_map/map_helper.rb,
sig/rails_google_map.rbs

Overview

View helpers for embedding a Google Map.

In a Rails app the engine mixes this into ActionView automatically, so the helpers are available in every template. Elsewhere, include it yourself.

Constant Summary collapse

EMBED_API_URL =

Maps Embed API endpoint. Requires a key and a billing-enabled project.

Returns:

  • (String)
"https://www.google.com/maps/embed/v1/place"
KEYLESS_EMBED_URL =

Keyless embed endpoint. No key, no billing, but no zoom/maptype either.

Returns:

  • (String)
"https://www.google.com/maps/embed"

Instance Method Summary collapse