About Google Maps Textformatter

Enter a full Google Maps link by itself in any paragraph and this will automatically convert it to an embedded map.

Category Text Formatters
Textformatter modules that provide run-time formatting for blocks of text (typically used with Text/Textarea fields).
Release StateStable
Should be safe for use in production environments. *
Authorteppo
Module Version1.1.6
Class NameTextformatterGoogleMaps
Compatibility2.2, 2.3, 2.4
Date AddedJune 23, 2013
Recommended ByNew recommendations may take up to 1 day to appear.

Details

This module looks for Google Maps URLs within paragraph (<p>...</p>) HTML tags and automatically converts them to embedded maps. Configurable options include embed type ("static" or "iframe"), API key, responsive embedding and Google Maps for Business settings.

Notes about Google Maps for Business

Generated signature is based on specific URL and private cryptographic key.

In order to use your private key within this module you'll have to save it in module configuration settings, which are stored as plain text in your database. Google's documentation, on the other hand, explicitly states that this private key should not be "stored on any websites".

Use this feature at your own risk and only if you're fully aware of the risks involved!

Code used by this module for generating encoded signatures was adapted from Google's Extended URL signing gallery sample for PHP.

Instructions

This module's files should be placed in /site/modules/TextformatterGoogleMaps/
How to install or uninstall modules

README

ProcessWire Google Maps Textformatter

Looks for Google Maps URLs within paragraph (<p>...</p>) HTML tags and automatically converts them to embedded maps. Configurable options include embed type ("static" or "iframe"), API key, responsive embedding and Google Maps for Business settings.

How to install

See "How-To Install or Uninstall Modules" page at modules.processwire.com: http://modules.processwire.com/install-uninstall/.

How to use

Edit settings of any textarea field and enable "Google Maps" textformatter from Details tab. Recommended to be used with TinyMCE or CKEditor fields.

Notes about Google Maps for Business

Generated signature is based on specific URL and private cryptographic key.

In order to use your private key within this module you'll have to save it in module configuration settings, which are stored as plain text in your database. Google's documentation, on the other hand, explicitly states that this private key should not be "stored on any websites".

Use this feature at your own risk and only if you're fully aware of the risks involved!

Code used by this module for generating encoded signatures was adapted from Google's Extended URL signing gallery sample for PHP: http://gmaps-samples.googlecode.com/svn/trunk/urlsigning/UrlSigner.php-source.


Copyright (c) 2013, Teppo Koivula

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.