From d6818a9544625472802de8490f8b0962cdceecb6 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 3 Nov 2013 12:18:51 +0000 Subject: [PATCH] Added new type of map entry: foto (enhancment ticket #85). git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1778 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wrmap.body.php | 2 +- wrmap.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wrmap.body.php b/wrmap.body.php index 3966766..eecb420 100644 --- a/wrmap.body.php +++ b/wrmap.body.php @@ -108,7 +108,7 @@ function xml_to_json_features($input) { throw new Exception('Die Landkarte enthält folgenden ungültigen Text: "' . trim($xml) . '".'); } $json_features = array(); // output - $point_types = array('gasthaus', 'haltestelle', 'parkplatz', 'achtung', 'punkt'); + $point_types = array('gasthaus', 'haltestelle', 'parkplatz', 'achtung', 'foto', 'punkt'); $line_types = array('rodelbahn', 'gehweg', 'alternative', 'lift', 'anfahrt', 'linie'); foreach ($xml as $feature) { $given_properties = array(); diff --git a/wrmap.php b/wrmap.php index 4df008f..7451d5b 100644 --- a/wrmap.php +++ b/wrmap.php @@ -120,6 +120,7 @@ Definition * * * + * * * * @@ -129,7 +130,7 @@ Definition * * The order may be used by the renderer to determine in which order the elements should be drawn. -* , , , and define points +* , , , , and 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 -- 2.39.5