Skip to content
Permalink
Browse files

FIX: worldmap textbox visibility per zoom level

  • Loading branch information...
Vojtech Pithart authored and LarsMichelsen committed Jun 14, 2019
1 parent 475b503 commit 1bd191da9d013aaae816d010acfe43df825836b5
Showing with 3 additions and 1 deletion.
  1. +2 −0 ChangeLog
  2. +1 −1 share/server/core/sources/worldmap.php
@@ -1,4 +1,6 @@
1.9.13
Worldmap:
* FIX: worldmap textbox visibility per zoom level

1.9.12
Core:
@@ -337,7 +337,7 @@ function process_worldmap($MAPCFG, $map_name, &$map_config) {
$min_zoom = isset($obj['min_zoom']) ? (int)$obj['min_zoom'] : $MAPCFG->getDefaultValue('host', 'min_zoom');
$max_zoom = isset($obj['max_zoom']) ? (int)$obj['max_zoom'] : $MAPCFG->getDefaultValue('host', 'max_zoom');
if ($min_zoom < $max_zoom && ($zoom < $min_zoom || $zoom > $max_zoom))
if ($min_zoom <= $max_zoom && ($zoom < $min_zoom || $zoom > $max_zoom))
continue;
$map_config[$object_id] = $obj;

0 comments on commit 1bd191d

Please sign in to comment.
You can’t perform that action at this time.