Skip to content

Commit

Permalink
discarded map overview setting; fixes #981
Browse files Browse the repository at this point in the history
  • Loading branch information
following5 committed Jun 1, 2016
1 parent bb6e916 commit 2479d33
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion htdocs/lib2/logic/const.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
define('USR_OPT_GMZOOM', 1);
define('USR_OPT_SHOWSTATS', 5);
define('USR_OPT_MAP_MENU', 6);
define('USR_OPT_MAP_OVERVIEW', 7);
define('USR_OPT_MAP_OVERVIEW', 7); // obsolete, no longer supported since Google Maps 3.22
define('USR_OPT_MAP_MAXCACHES', 8);
define('USR_OPT_MAP_ICONSET', 9);
define('USR_OPT_MAP_PREVIEW', 10);
Expand Down
6 changes: 0 additions & 6 deletions htdocs/map2.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@
if (isset($_REQUEST['opt_menumap'])) {
$useroptions->setOptValue(USR_OPT_MAP_MENU, $_REQUEST['opt_menumap'] + 0);
}
if (isset($_REQUEST['opt_overview'])) {
$useroptions->setOptValue(USR_OPT_MAP_OVERVIEW, $_REQUEST['opt_overview'] + 0);
} else {
$useroptions->setOptValue(USR_OPT_MAP_OVERVIEW, 0);
}
if (isset($_REQUEST['opt_maxcaches'])) {
$useroptions->setOptValue(
USR_OPT_MAP_MAXCACHES,
Expand Down Expand Up @@ -254,7 +249,6 @@
// options
$useroptions = new useroptions($login->userid);
$tpl->assign('opt_menumap', $useroptions->getOptValue(USR_OPT_MAP_MENU));
$tpl->assign('opt_overview', $useroptions->getOptValue(USR_OPT_MAP_OVERVIEW));
$tpl->assign('opt_maxcaches', $useroptions->getOptValue(USR_OPT_MAP_MAXCACHES));
$tpl->assign('opt_cacheicons', $useroptions->getOptValue(USR_OPT_MAP_ICONSET));
$tpl->assign('opt_pictures', $useroptions->getOptValue(USR_OPT_MAP_PREVIEW));
Expand Down
7 changes: 0 additions & 7 deletions htdocs/templates2/ocstyle/map2.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,6 @@ function mapLoad()
scaleControl: true,
streetViewControl: false,
overviewMapControl: true, {/literal}
{if $opt_overview==1}
overviewMapControlOptions: {literal}{ opened: true }{/literal},
{/if} {literal}
styles:
[ { featureType:"poi.business", elementType:"labels", stylers: [{ visibility:"off" }] },
{ featureType:"poi.government", elementType:"labels", stylers: [{ visibility:"off" }] } ]
Expand Down Expand Up @@ -1563,7 +1558,6 @@ function toggle_settings()
// set controls to config values
document.getElementById('opt_menumap0').selected = "{if $opt_menumap == 0}selected{/if}";
document.getElementById('opt_menumap1').selected = "{if $opt_menumap == 1}selected{/if}";
document.getElementById('opt_overview').checked = "{if $opt_overview == 1}checked{/if}";
document.getElementById('opt_maxcaches').value = "{$opt_maxcaches}";
document.getElementById('opt_cacheicons1').selected = "{if $opt_cacheicons == 1}selected{/if}";
document.getElementById('opt_cacheicons2').selected = "{if $opt_cacheicons == 2}selected{/if}";
Expand Down Expand Up @@ -2330,7 +2324,6 @@ function toggle_attribselection(bSaveCookies)
<table>
<tr><td><span style="font-size:1.2em; font-weight:bold">{t}Settings{/t}</strong></td><td style="text-align:right"><a href="javascript:toggle_settings()"><img src="resource2/ocstyle/images/navigation/19x19-close.png" style="opacity:0.7" /></a></tr>
<tr><td>{t}Menu option 'Map' shows:{/t}</td><td><select name="opt_menumap"><option id="opt_menumap0" value="0">{t}small map{/t}</option><option id="opt_menumap1" value="1">{t}fullscreen map{/t}</option></select></td></tr>
<tr><td>{t}Show overview map:{/t}</td><td><input type="checkbox" id="opt_overview" name="opt_overview" value="1" /></td></tr>
<tr><td>{t 1=$min_maxrecords 2=$max_maxrecords}Maximum caches on map<br />(%1-%2, 0=automatic):{/t}</td><td><input type="text" id="opt_maxcaches" name="opt_maxcaches" size="6" /></td></tr>
{if $msie}
<tr><td colspan="2" style="padding-top:0; white-space:normal">
Expand Down

0 comments on commit 2479d33

Please sign in to comment.