Google Map3 Plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" yes

plugin Allow displays a Google map on wiki page

Last updated on
2011-05-21
Provides
Syntax

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

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

  • The plugin page tells me: getInfo() not implemented in action_plugin_googlemap3 and
    C:\xampp\htdocs\dokuwiki/lib/plugins//googlemap3/plugin.info.txt

    not found.

  • No google map appears on my page.

Discussion

plugin/googlemap3.txt · Last modified: 2012/05/04 01:03 by 128.72.40.100
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate