diff options
Diffstat (limited to 'www/wiki/extensions/Maps/src/MapsFunctions.php')
-rw-r--r-- | www/wiki/extensions/Maps/src/MapsFunctions.php | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/www/wiki/extensions/Maps/src/MapsFunctions.php b/www/wiki/extensions/Maps/src/MapsFunctions.php index 47cd1358..06274cc1 100644 --- a/www/wiki/extensions/Maps/src/MapsFunctions.php +++ b/www/wiki/extensions/Maps/src/MapsFunctions.php @@ -75,24 +75,19 @@ final class MapsFunctions { public static function getCommonParameters() { $params = []; - $params['mappingservice'] = [ - 'type' => 'string', - 'aliases' => 'service', - 'default' => $GLOBALS['egMapsDefaultService'], - 'values' => MapsFactory::globalInstance()->getMappingServices()->getAllNames(), - ]; - $params['width'] = [ 'type' => 'dimension', 'allowauto' => true, 'units' => [ 'px', 'ex', 'em', '%', '' ], 'default' => $GLOBALS['egMapsMapWidth'], + 'message' => 'maps-par-width', ]; $params['height'] = [ 'type' => 'dimension', 'units' => [ 'px', 'ex', 'em', '' ], 'default' => $GLOBALS['egMapsMapHeight'], + 'message' => 'maps-par-height', ]; $params['centre'] = [ @@ -100,16 +95,9 @@ final class MapsFunctions { 'aliases' => [ 'center' ], 'default' => false, 'manipulatedefault' => false, + 'message' => 'maps-par-centre', ]; - // Give grep a chance to find the usages: - // maps-par-mappingservice, maps-par-geoservice, maps-par-width, - // maps-par-height, maps-par-centre - foreach ( $params as $name => &$data ) { - $data['name'] = $name; - $data['message'] = 'maps-par-' . $name; - } - $params['title'] = [ 'name' => 'title', 'default' => $GLOBALS['egMapsDefaultTitle'], @@ -124,10 +112,6 @@ final class MapsFunctions { 'default' => '', ]; - $params['visitedicon'] = [ - 'default' => '', - ]; - $params['lines'] = [ 'type' => 'mapsline', 'default' => [], @@ -156,12 +140,6 @@ final class MapsFunctions { 'islist' => true, ]; - $params['wmsoverlay'] = [ - 'type' => 'wmsoverlay', - 'default' => false, - 'delimiter' => ' ', - ]; - $params['maxzoom'] = [ 'type' => 'integer', 'default' => false, @@ -188,8 +166,8 @@ final class MapsFunctions { // Give grep a chance to find the usages: // maps-displaymap-par-title, maps-displaymap-par-label, maps-displaymap-par-icon, - // maps-displaymap-par-visitedicon, aps-displaymap-par-lines, maps-displaymap-par-polygons, - // maps-displaymap-par-circles, maps-displaymap-par-rectangles, maps-displaymap-par-wmsoverlay, + // aps-displaymap-par-lines, maps-displaymap-par-polygons, + // maps-displaymap-par-circles, maps-displaymap-par-rectangles, // maps-displaymap-par-maxzoom, maps-displaymap-par-minzoom, maps-displaymap-par-copycoords, // maps-displaymap-par-static foreach ( $params as $name => &$param ) { |