]> ToastFreeware Gitweb - philipp/winterrodeln/mediawiki_extensions/wrmap.git/blobdiff - wrmap.php
Added a comment mentioning www.basemap.at.
[philipp/winterrodeln/mediawiki_extensions/wrmap.git] / wrmap.php
index b9da674caae8b739b6864d9c67d9a3b67144595e..29da3e1dd57481d0822c1efa80ddb5792b7e8e19 100644 (file)
--- a/wrmap.php
+++ b/wrmap.php
@@ -120,20 +120,23 @@ Definition
                * <haltestelle>
                * <parkplatz>
                * <achtung>
+               * <foto>
+               * <verleih>
                * <punkt>
                * <rodelbahn>
                * <alternative>
                * <gehweg>
                * <lift>
+               * <anfahrt>
                * <linie>
        * The order may be used by the renderer to determine in which order the 
          elements should be drawn.
-* <gasthaus>, <haltestelle>, <parkplatz>, <achtung> and <punkt> define points
+* <gasthaus>, <haltestelle>, <parkplatz>, <achtung>, <foto>, <verleih> and <punkt> define points
        * The elements may have the following attributes:
                * name (string): defines the name (not the label) of the element
                * wiki (string): name of a MediaWiki page the point refers to
        * The content is exactly one coordinate pair.
-* <rodelbahn>, <alternative>, <gehweg>, <lift> and <linie>
+* <rodelbahn>, <alternative>, <gehweg>, <lift>, <anfahrt> and <linie>
   define non-closed polygons.
        * They may have the following attributes:
                farbe (hex format, e.g. #12a50f): color of the line
@@ -142,8 +145,8 @@ Definition
                coordinates.
 
 
-For transmitting the map to javascript, geojson is used in a <script> block. This way,
-an extra request is avoided. The geojson format used here consists of a single 
+For transmitting the map to javascript, geojson is used in the <div> element of the map.
+This way, an extra request is avoided. The geojson format used here consists of a single
 "FeatureCollection" (representing the <wrmap>) containing the sub-elements of wrmap
 as features.
 The features have an properties key that has a hash as values with the properties of 
@@ -159,7 +162,7 @@ the wrmap element.
 
 $wgExtensionCredits['parserhook'][] = array(
        'name' => 'Winterrodeln Map',
-       'version' => '3.0.0',
+       'version' => '3.3.0',
        'author' =>'Philipp Spitzer', 
        'url' => 'http://www.winterrodeln.org/trac/wiki/WrMap', 
        'description' => 'This extension creates a map using OpenLayers to show sledrun details and sledrun overviews.'
@@ -168,7 +171,8 @@ $wgExtensionCredits['parserhook'][] = array(
 
 
 $wgResourceModules['ext.wrmap'] = array(
-       'scripts' => array('openlayers/OpenLayers.js', 'wrmap.js'),
+       'scripts' => array('openlayers/OpenLayers.min.js', 'wrmap.js'),
+       // 'scripts' => array('openlayers/OpenLayers.js', 'wrmap.js'), // non-minimized version for debugging
        'styles' => array('openlayers/theme/default/style.css', 'openlayers/theme/default/google.css'),
 
        // When your module is loaded, these messages will be available through mw.msg()
@@ -193,8 +197,7 @@ $wgResourceModules['ext.wrmap'] = array(
 
 $wgAutoloadClasses['WrMap'] = dirname(__FILE__) . '/wrmap.body.php';
 $wgAutoloadClasses['WrGMap'] = $wgAutoloadClasses['WrMap'];
-
-
+$wgMessagesDirs['wrmap'] = __DIR__ . '/i18n';
 $wgHooks['ParserFirstCallInit'][] = 'wrMapParserFirstCallInit';