GoogleMapsRoutesPlugin
EN:
Shows simple routes on an embedded Google Map.
HU:
Egyszerű útvonalakat rajzol egy beágyazott Google Map-en.
Syntax Rules
EN:
- Tag name:%GMAPR{...}%
- Parameters:
- lat, lng, zoom, points, level, rzoom: These are from Google's polylineutil
- zoom is map zoom, rzoom is route zoom
- mapid: Name of the map, syntax is like for variable names
- color: Valid HTML color specification
HU:
- Tag neve:%GMAPR{...}%
- Paraméterek:
- lat, lng, zoom, points, level, rzoom: Ezek a Google polylineutil
-ből jönnek
- zoom a térkép nagyítás, rzoom az útvonal nagyítás
- mapid: Térkép neve, a szintaxis olyan, mint a változóneveké
- color: Helyes HTML színspecifikáció
Examples
- %GMAPR{mapid="map" lat="40.71213418976525" lng="-73.96785736083984" zoom="15" points="iuowFf{kbMzH}N`IbJb@zBpYzO{dAvfF{LwDyN`_@`NzKqB|Ec@|L}BKmBbCoPjrBeEdy@uJ`Mn@zoAer@bjA~Xz{JczBa]pIps@de@tW}rCdxSwhPl`XgikCl{soA{dLdAaaF~cCyxCk_Aao@jp@kEvnCgoJ`]y[pVguKhCkUflAwrEzKk@yzCv^k@?mI" levels="B????????????????????????????????????B" rzoom="32" color="#3333cc"}%
Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%, i.e.
%NEWPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Show simple routes on an embedded Google Map
- Debug plugin: (See output in
data/debug.txt)
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.
- Ask for the plugin
- A preliminary version is attached to this page
- But beware: this is alpha test quality code, no cleanups done yet
- Licensed under GPL (contact me if it does not suit your needs), any help is welcome
- Unzip
GoogleMapsRoutesPlugin.tar.gz above your twiki installation directory. Content: | File: | Description: |
twiki/data/TWiki/GoogleMapsRoutesPlugin.txt | Plugin topic (coming soon) |
twiki/data/TWiki/GoogleMapsRoutesPlugin.txt,v | Plugin topic repository (coming soon) |
twiki/lib/TWiki/Plugins/GoogleMapsRoutesPlugin.pm | Plugin Perl module |
twiki/pub/TWiki/GoogleMapsRoutesPlugin/penc.js | Supplementary javascript code |
- Configure the Plugin:
- Add your Google Maps API key to:
lib/TWiki/Plugins/GoogleMapsRoutesPlugin.pm
- This step is not optional
- Search for '**********', then replace it with your key
- Edit penc.js if you want to change defaults
Plugin Info
Related Topics: TWikiPlugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
TWikiPreferences
--
TWiki:Main.LorandSzollosi
- 31 Jan 2007