| | 1 | = Menu = |
| | 2 | |
| | 3 | A slice of type Menu will display a location using google maps.[[BR]] |
| | 4 | You need to specify '''gmap_api_key''' inside your ACR configuration file to be able to use it. |
| | 5 | |
| | 6 | == Preview == |
| | 7 | |
| | 8 | It will display a static version of the map with a link to the gmap url of the dynamic version[[BR]] |
| | 9 | by default the static version will be of size 200x200, if there is a size specified inside the content[[BR]] |
| | 10 | that size will be used for the preview version too. |
| | 11 | |
| | 12 | == Use == |
| | 13 | |
| | 14 | * view: '''map''' |
| | 15 | |
| | 16 | * content: '''ini''' |
| | 17 | |
| | 18 | == INI == |
| | 19 | |
| | 20 | Starts with a '''[map]''' section and must contain at least a '''location''' |
| | 21 | |
| | 22 | * '''location''' = can be any address accepted by google maps (like 'New York' for example) |
| | 23 | |
| | 24 | * '''zoom''' = how deep to zoom inside the map (default is 13) |
| | 25 | |
| | 26 | * '''size''' = [WIDTHxHEIGHT] size of the map to display, by default will be 200x200 for preview mode and not specified for dynamic map, dynamic map size can be specified using CSS |
| | 27 | |
| | 28 | == Example == |
| | 29 | Content must have an ini-like syntax inside a '''[map]''' group |
| | 30 | |
| | 31 | {{{ |
| | 32 | [map] |
| | 33 | location=Torino |
| | 34 | zoom=10 |
| | 35 | size=400x400 |
| | 36 | }}} |
| | 37 | |