DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:googlemap3

Google Map3 Plugin

Compatible with DokuWiki

2009-12-25c, 2010-11-07, 2011-05-26, lemmings, anteater, rincewind, angua

plugin Allow displays a Google map on wiki page

Last updated on
2011-05-21
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Security warning (please read plugin security guidelines): This extension will allow execution of scripts. It should only be used when you trust ALL editors, best suited in private personal wikis.

Similar to googlemaps

Tagged with embed, google, maps, media

Installation

  • Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin.
  • Or download using the following URL and unpack in plugin directory. Refer to Plugins on how to install plugins manually.

Description

This plug-in rebuild googlemaps plugin of Christopher Smith to use new GoogleMap javascript API v3.

New:

  • Not needed Google Map API Key
  • Has a helper, showing the coordinates of the selected point & center map
  • Separate small singature & wiki-description of marker
  • Asynchronous loading of Google java script
  • New Googlemap API v3 can be more fastest work what v2
  • You can use one mouse click on map for moving

Plugin homepage: http://www.unix7.pro/ict/googlemaps

Syntax

Syntax little differently than in googlemaps plugin:

<googlemap3 width="number" height="number" lat="number" lng="number">
latitude, longtitude, short signature; long desctiption
latitude, longtitude, short signature; long desctiption with {{:some:image.jpg?300|with image}} and [[:page:link| link to page]]
latitude, longtitude, short signature without longdescription;
latitude, longtitude,;longdescription without signature 
</googlemap3>

Long description for marker you must write in one string, without line break.

Use a semicolon as separator is dictated by the desire to use a comma in the signatures, for example, “Anchho Mountain, height 2696m.”

You can disable the coordinates helper:

<googlemap3 width="number" height="number" helper="off" >

By default it is enabled.

Demo

Configuration and Settings

Parameters

Changes from prevention googlemaps plugin marked bold.

  • width — 999[css length unit*] (e.g. 500px, 50%) width of the Google map, default is “400px”.
  • height — 999[css length unit*] (e.g. 500px, 30em) height of the Google map, default is “300px”.
  • type — values: map | normal | hybrid | satellite | terrain, default map (normal).
  • lat — values: -90.0 - 90.0; latitude of map centre, negative values are south.
  • lng — values: -180.0 - 180.0; longitude of map centre, negative values are west.
  • zoom — integer, zoom level, default value 8. Valid values depend on the map and location.
  • controls — values on | off. default on. Whether or not to show controls for zooming and panning on the map.
  • kml — values: off | [URL of kml file].
  • helper — values on | off

Config URL

Default URL for downloading javascrypt API is

http://maps.google.com/maps/api/js?sensor=false

You may use concrete version API & enable sensor if you have it in target browser

http://maps.google.com/maps/api/js?v=3.3&sensor=true

For more information see Google Maps Javascript API V3 Basics

Known Bugs and Issues

  • No google map appears on my page.
Does not work on IE7

I'm running dokuwiki 'Adora Belle' (fresh default install). The map shows up in Firefox but not in IE7. The page status bar says 'Done, but with errors on page'. Details says 'Error: array 'googleMapArray' is undefined'

Discussion

Hello, can you please insert a Sample to test the installation? In my case only a line is shown :-( Me either…


FIXME A malicious content editor can inject javascript into the page even if $conf['htmlok'] is false (details emailed to Borodin/Chris 6th Jul 2013) - symcbean, 12 Jul 2013

FIXME The download link does not work, I found a version at http://www.homeunix7.org/_media/ict/googlemap/googlemap3.tar.gz but had to rename the installed directory (in lib/plugins) from googlemap to googlemap3 to make it work… Hans E, 3 sept 2013

plugin/googlemap3.txt · Last modified: 2016-07-08 15:22 by 195.191.50.4