Mapstraction Action Documentation

not included in Wikka

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

Documentation


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).

Requirements

To use this action you'll need the scripts you find here: http://mapstraction.com/svn/source/

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?

Parameters

nametyperequired?defaultdescription
namestringoptionalmapstractionIf 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.
latitudefloatoptionalLatitude of the center of the map, formatted as float value. Positive values are northern hemisphere, negative values are southern hemisphere.
longitudefloatoptionalLongitude of the center of the map, formatted as float value. Positive values are eastern hemisphere, negative values are western hemisphere.
widthstringoptional300pxThe width of the map. You can specify any value that's allowed in CSS.
heightstringoptional300pxas width
maptypeintegeroptional11: road map, 2: satellite map, 3: hybrid map
zoomintegeroptional4Zoom level as used by Google
overviewbooleanoptionalFALSEWether an overview map should be displayed or not.
markersintegeroptional0to come


Long description

Place for a longer description.


Author
MasinAlDujaili
with code from NilsLindenberg, SamuelDR and FrankChestnut

To do

 

CategoryUserContributions
Comments
Comment by DarTar
2008-06-08 17:06:43
Very interesting Masin, as I noted before, I wonder if actions (as opposed to formatters) are the right way to deal with map data with many parameters.
Comment by NilsLindenberg
2008-06-08 18:27:37
Great! I've seen that you use OpenStreetMap as a fallback. Does it work if you do not have a googlekey?
Comment by MasinAlDujaili
2008-06-09 02:51:28
Uhm ... I didn't test till you asked :-). No, it doesn't work. I changed the fallback service to openlayers.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki