ez projects / googlepath
| UNIX name | Owner | Status | Version | Compatible with |
|---|---|---|---|---|
| googlepath | Jon Staines | stable | 1.1 | 3.8-3.10 |
Installation
-----------------
1) Extract the archive into the /extensions directory
2) Enable the extension via the admin interface or by editing the
site.ini.append in /settings/override.
3) If you do not already have a Google Map API key, then sign up for
one at:
4) Edit extensions/googlepath/settings/googlepath.ini.append.php and
replace
"domain;key" with the domain of your site and your Google key. For example:
[ApiKeys]
GoogleApiKeys[]=localhost;ABQI....
GoogleApiKeys[]=www.example.com;ABQI....
5) Clear the cache
Usage
-----------------
1) Add a googlepath datatype to a class.
2) Add xmlns:v="urn:schemas-microsoft-com:vml" to the html tag to allow
it to work in IE. Either edit the existing pagelayout.tpl or make a
new override template for the pages that call this extension.
3) Edit the template for that class to contain the following:
{attribute_view_gui attribute=$node.data_map.gpath}
Where gpath is replaced with the identifier you gave the googlepath
datatype in the class.
4) Create or edit a node that uses the class with the googlepath added.
5) Click on the 'View Map' button which opens a pop up window
containing a Google Map.
6) Drag the map around in the normal fashion (you can no longer double
click to center, sorry) until you are at the location you want to add
the path.
7) Click the 'Start' button. Now click on the map along the path you
wish drawn. Lines will appear between clicks. Once the path is
complete, click the 'St
op' button.
8) Click 'Submit'. Finish the rest of the content creation as
normal.
9) Check the page on the website.
Map settings such as dimensions, default lat/lng and zoom level can be
set in settings/googlepath.ini.append.php
Changelog
Friday 27 February 2009 14:40
Jon Staines