Sha256: d6f291d68905b5e238fbdcadb581f71c8597425a90c51453b3e9ed398b8e50bb

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

# ScrivitoGoogleMapsWidget

The Google Maps widget is based on the
[Google Places JavaScript API](https://developers.google.com/maps/documentation/javascript/places).
It displays a single location marker for an address that can be specified using an input field supporting location suggestions.

## Installation

Add this line to your application's `Gemfile`:

    gem 'scrivito_google_maps_widget'

Include the Google Maps Places JavaScript library in your application.html.erb:

    <%= javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places') %>

Include the Google Maps Places JavaScript library in your `scrivito_dialog.html.erb`:

    <%= javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places') %>

Also, add this line to your `application.css` stylesheet manifest:

    *= require scrivito_google_maps_widget

If you use `sass-rails` for your application stylesheet manifest (e.g. `application.scss` or `application.css.scss`) add the following:

    @import "scrivito_google_maps_widget/application";
    @import "scrivito_google_maps_widget/editing";

Finally, add this line to your application JavaScript manifest:

    //= require scrivito_google_maps_widget

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scrivito_google_maps_widget-0.1.8 README.md