Tags:
create new tag
, view all tags

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)
    • Set DEBUG = 0

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 wink
    • 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 wink
  • 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

Plugin Author: TWiki:Main.LorandSzollosi
Copyright: © 2007, TWiki:Main.LorandSzollosi
License: GPL (GNU General Public License)
Plugin Version: 31 Jan 2007 (V1.000)
Change History:  
31 Jan 2007: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Benchmarks: GoodStyle nn%, FormattedSearch nn%, GoogleMapsRoutesPlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/GoogleMapsRoutesPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/GoogleMapsRoutesPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/GoogleMapsRoutesPluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

-- TWiki:Main.LorandSzollosi - 31 Jan 2007

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatgz gmapr.tar.gz manage 8.0 K 2007-02-17 - 17:34 LorandSzollosi The preliminary version of this plugin
Topic revision: r3 - 2007-02-17 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.