diff options
Diffstat (limited to 'includes/maps.php')
-rw-r--r-- | includes/maps.php | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/includes/maps.php b/includes/maps.php index cddd0d5..474a2ad 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -110,19 +110,6 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL) //$height = (($i * 22) + 2).'px';
$jsonmap = str_replace("'", "\'", json_encode($mapdata));
-
- //!! This should move to header.php
- //This works in chrome, not sure about others.
- $preloaddiv = "
- <div style='visibility:hidden;display:none'>
- <img src='images/Path1.png' alt=''>
- <img src='images/Path2.png' alt=''>
- <img src='images/Path3.png' alt=''>
- <img src='images/Path4.png' alt=''>
- <img src='images/OverlayTileFaceted50.png' alt=''>
- <img src='images/OverlayTileFaceted30.png' alt=''>
- <img src='images/OverlayTileFaceted10.png' alt=''>
- </div>";
//$mapdatadiv .= "<div id='$idprefix,mapdata' style='visibility:hidden;display:none'>";
//$mapdatadiv .= $jsonmap;
@@ -134,8 +121,7 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL) </script>";
- $maptable = "$preloaddiv
- <table style='width:$width;height:$height;' class='grid_table'>
+ $maptable = "<table style='width:$width;height:$height;' class='grid_table'>
$maptable
</table>";
@@ -1079,4 +1065,4 @@ function findTilesM ($mapMatrix, $search) { return $r;
}
-?>
\ No newline at end of file +?> |