Wiki source for MapstractionActionInfo

Show raw source

=====Mapstraction Action Documentation=====
>>**See also**
~-Development: MapstractionAction
~-[[ | Development website of Mapstraction]]
>>//not included in Wikka//

This is the documentation page for the ##""{{mapstraction}}""## action.


===Short description===
This action outputs a map of a given map provider. The mapstraction scripts support different providers. Some need keys for usage, some have withdrawn their service (e.g. Microsoft, ""MapQuest"").

To use this action you'll need the scripts you find here:

Put them into the directory ##[your wikka installation directory]/3rdparty/plugins/mapstraction/##. Furthermore you should add this line to you wikka.config.php:
'mapstraction_path' => '3rdparty/plugins/mapstraction',
Of course, you can choose a different path -- but why?

""<table cellspacing="0" cellpadding="2" border="1">
<tr><th scope="col">name</th><th scope="col">type</th><th scope="col">required?</th><th scope="col">default</th><th scope="col">description</th></tr>
<tr><td>name</td><td>string</td><td>optional</td><td>mapstraction</td><td>If more than one map on a page is used, the name should be specified. The name parameter will be used as id of the div container, the map will be displayed in.</td></tr>
<tr><td>latitude</td><td>float</td><td>optional</td><td></td><td>Latitude of the center of the map, formatted as float value. Positive values are northern hemisphere, negative values are southern hemisphere.</td></tr>
<tr><td>longitude</td><td>float</td><td>optional</td><td></td><td>Longitude of the center of the map, formatted as float value. Positive values are eastern hemisphere, negative values are western hemisphere.</td></tr>
<tr><td>width</td><td>string</td><td>optional</td><td>300px</td><td>The width of the map. You can specify any value that's allowed in CSS.</td></tr>
<tr><td>height</td><td>string</td><td>optional</td><td>300px</td><td>as width</td></tr>
<tr><td>maptype</td><td>integer</td><td>optional</td><td>1</td><td>1: road map, 2: satellite map, 3: hybrid map</td></tr>
<tr><td>zoom</td><td>integer</td><td>optional</td><td>4</td><td>Zoom level as used by Google</td></tr>
<tr><td>overview</td><td>boolean</td><td>optional</td><td>FALSE</td><td>Wether an overview map should be displayed or not.</td></tr>
<tr><td>markers</td><td>integer</td><td>optional</td><td>0</td><td>to come</td></tr>

===Long description===
//Place for a longer description.//

with code from NilsLindenberg, SamuelDR and FrankChestnut

===To do===
~-better documentation
~-code cleanup
~-checking for security leaks
~-more features as provided by Mapstraction
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki