0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
prefs
/
[
Home
]
File: geo.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: geo.php 53803 2015-02-06 00:42:50Z jyhem $ function prefs_geo_list() { return array( 'geo_locate_wiki' => array( 'name' => tra('Geolocate wiki pages'), 'description' => tra('Provide controls to geolocate wiki pages from the edit functionality.'), 'type' => 'flag', 'default' => 'n', ), 'geo_locate_article' => array( 'name' => tra('Geolocate articles'), 'description' => tra('Provide controls to geolocate articles from the edit functionality.'), 'type' => 'flag', 'default' => 'n', ), 'geo_locate_blogpost' => array( 'name' => tra('Geolocate blog posts'), 'description' => tra('Provide controls to geolocate blog posts from the edit functionality.'), 'type' => 'flag', 'default' => 'n', ), 'geo_tilesets' => array( 'name' => tra('Available tile layers on maps'), 'description' => tra('Allows to replace the default OpenStreetMap tiles for tiles from other mapping services, such as Google or Bing.'), 'hint' => tr( 'Valid options are: %0', implode( ', ', array( 'openstreetmap', 'mapquest_street', 'mapquest_aerial', 'google_street', 'google_satellite', 'google_physical', 'google_hybrid', 'blank', /* Needs additional testing 'visualearth_road', 'visualearth_aerial', 'visualearth_hybrid', 'yahoo_street', 'yahoo_satellite', 'yahoo_hybrid', */ ) ) ), 'type' => 'text', 'filter' => 'word', 'separator' => ',', 'default' => array('openstreetmap'), 'tags' => array('advanced', 'experimental'), ), 'geo_google_streetview' => array( 'name' => tr('Google Street View'), 'description' => tr('Open up Google Street View in a window to see the visible coordinates.'), 'dependencies' => array('gmap_key'), 'type' => 'flag', 'default' => 'n', 'tags' => array('basic', 'experimental'), ), 'geo_google_streetview_overlay' => array( 'name' => tr('Google Street View Overlay'), 'description' => tr('Open up Google Street View in a window to see the visible coordinates.'), 'dependencies' => array('geo_google_streetview'), 'warning' => tr('This is not guaranteed to work.'), 'type' => 'flag', 'default' => 'n', 'tags' => array('basic', 'experimental'), ), 'geo_always_load_openlayers' => array( 'name' => tr('Always load OpenLayers'), 'description' => tr('Load the OpenLayers library even if no map is explicitly included in the page'), 'type' => 'flag', 'default' => 'n', ), 'geo_zoomlevel_to_found_location' => array( 'name' => tr('Zoom to found location'), 'description' => tr('Zoom to street level when finding a searched location'), 'type' => 'list', 'options' => array( 'street' => tra('Street level'), 'town' => tra('Town level'), 'region' => tra('Region level'), 'country' => tra('Country level'), 'continent' => tra('Continent level'), 'world' => tra('World'), ), 'default' => 'street', ), ); }