#320

Product support

Get help in the plugin support forum.

Categories

  • Miscellaneous
  • Utility

Google Maps plugin for OctoberCMS

If you like the product please give a thumbs up!

Advantages

  • Get directions on button click
  • Customizible map marker
  • Translatable content

Requirements

  • Google Maps API Key, to add it to the plugin settings

Optional

  • Translate plugin, if you want to include multilingual contents.

Authors

License

The MIT License (MIT)

Copyright (c) 2017 GrofGraf

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Settings

This plugin creates a Settings menu item, found by navigating to Settings > Google Maps > Google Maps Settings. You must fill all the required fields.

Marker Image and Directions Button Text are optional fields. If you leave Marker Image field empty, default marker will be displayed.

For directions button to work, your website must have a secure origin such as HTTPS.

If Translate is enabled, Directions Button Text is translatable.

Usage

To use this plugin, first you must fill all the required settings. You can put the map on any front-end page. Add the googleMap Component to a page or layout.

The simplest way to add the map is to use the component's default partial and the {% component %} tag. Add it to a page or layout where you want to display the map:

{% component 'googleMap' %}

If you want to add Get Directions button, you can include a component's partial located in the plugins/grofgraf/googlemaps/components/googlemap/directions-button.htm by adding

{% partial 'googleMap::directions-button' %}

Note that directions will only work if your website has a secure origin such as HTTPS

1.0.5

Fixed permissions

Dec 13, 2017

1.0.4

Registered permission

Dec 13, 2017

1.0.3

Component namespace error fixed

Dec 08, 2017

1.0.2

Added backend form validation

Dec 07, 2017

1.0.1

First version of GoogleMaps

Dec 05, 2017