Plugin GoogleMap
Introduced in Tiki5This Wiki Plugin will display a Google Map.
Table of contents
Usage and Parameters
To use this plugin in a wiki page, use the syntax:Syntax for the ... plugin
{GOOGLEMAP(type=locator|user|item|objectlist, mode=normal|satellite|hybrid, key=XXXXX, name=xxx, width=500, height=400, frameborder=1|0, defaultx=-79.4, defaulty=43.707, defaultz=14, setdefaultxyz=1|0, locateitemtype=wiki page|..., locateitemid=xxx, hideifnone=0|1, togglehidden=0|1, starthidden=0|1, autozoom=14)}{GOOGLEMAP}Required parameters are in bold
Preferences required: wikiplugin_googlemap
| Parameters | Accepted Values | Description | Default | Since |
| type | item locator objectlist trackerfield user |
Type of items to show on google map | ||
| mode | normal satellite hybrid |
Map display mode | ||
| key | Valid key for the website, which can be obtained at http://code.google.com/apis/maps/signup.html. | Google maps key. Not needed if set in user preferences | ||
| name | Single "word" which must begin with a letter and may be followed by any number of digits, hyphens, underscores, colons and periods. | Id suffix of Google map div to avoid conflicts with other maps on same page | default | |
| width | A plain number will be interpreted as pixels. Add a % symbol after the number to indicate percentage. | Width in pixels or % | 500 | |
| height | A plain number will be interpreted as pixels. Add a % symbol after the number to indicate percentage. | Height in pixels or % | 400 | |
| frameborder | 1 |
Choose whether to show a frame border around the map (no border shown by default). | 0 | |
| defaultx | An integer between -180 and 180. | Default longitude value used to center the map, e.g. -79.39. Default is the default set in the Gmap feature. | ||
| defaulty | An integer between -180 and 180. | Default latitude value used to center the map, e.g. 43.7. Default is the default set in the Gmap feature. | ||
| defaultz | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Use an integer between 1 and 21 to set a default zoom level for the map. Default is the default set in the Gmap feature. | ||
| setdefaultxyz | 1 |
Allow user to set current map view as default view for himself only | ||
| marker | 1 |
Add a marker when only the default or no coordinates are set. No marker by default. | 0 | 8.0 |
| markertext | Plain text or Tiki wiki-syntax. | Text for bubble for marker. Tiki wiki-syntax can be used. | 8.0 | |
| markerstart | hide show |
Set whether the marker text bubble is shown or hidden initially. Default is to hide. | hide | 8.0 |
| locateitemtype | article | blog | comment | faq | file gallery | image gallery | poll | post | tracker | trackeritem | trackeritem_pending | trackeritem_closed | user | wiki page | Type of item being geotagged (user, wiki page, blog, etc). Will attempt to use current object if not specified. Tracker items must be categorized. | ||
| locateitemid | Any ID number or name for an existing object of the type specified in the Item Type field. | ID of item being geotagged (name of page, blog ID, etc). Will attempt to use current object if not specified | ||
| hideifnone | 1 |
Hide map if there are no markers to be shown. Default is to show the map. | ||
| togglehidden | 1 |
Add ability to toggle visibility. No toggle by default. | 0 | |
| togglealign | left center right |
Alignment for the show/hide toggle link | 8.0 | |
| starthidden | 1 |
Choose whether to keep the map hidden initially. Default is to show the map initially. | ||
| autozoom | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 21 | Use an integer between 1 and 21 to auto zoom to this level on address find | ||
| controls | a z zt zs t ts s n |
Show map controls (shown by default) | y | |
| trackerfieldid | Numeric ID of a location type tracker field. | Field ID of tracker field if type is Item, Tracker Field or Locator, Item Type is trackeritem and Item ID is the tracker item ID. Tracker item must be categorized. | 0 | |
| trackerinputid | Single "word" which must begin with a letter and may be followed by any number of digits, hyphens, underscores, colons and periods. | HTML ID of tracker field input box where value is copied to by Javascript. Auto set if used as part of entry forms | ||
| in_form | 1 |
Set to 1 (Yes) if this is embedded inside a form. Needed to prevent nested forms which is not allowed in HTML. | 0 |
Requires Ajax to be enabled (Admin Home > Features > Experimental (tab)).
