changeset 150:4b24f4522ef8 gmap2

Moar.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 09 Mar 2014 18:17:07 +0200
parents 0b951f0ea7c0
children 13e75e9e732a
files overlay.php
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/overlay.php	Sun Mar 09 17:50:35 2014 +0200
+++ b/overlay.php	Sun Mar 09 18:17:07 2014 +0200
@@ -38,7 +38,7 @@
 
 $c_trans = imagecolorallocate($im, 0,32,0);
 imagecolortransparent($im, $c_trans);
-$c_alpha = imagecolorallocatealpha($im, 0,0,0,96);
+$c_alpha = imagecolorallocatealpha($im, 0,0,0,150);
 $c_black = imagecolorallocate($im, 0,0,0);
 $c_white = imagecolorallocate($im, 255,255,255);
 
@@ -59,6 +59,9 @@
 $yorig = $yc * $tilesize;
 $flag = FALSE;
 
+if ($zoom >= 4)
+{
+
 $file = fopen("overlay.txt", "r");
 while ($data = fgetcsv($file, 160, ","))
 {
@@ -109,6 +112,7 @@
 }
 fclose($file);
 
+} // zoom check
 
 // If tile block is dirty, store to a file
 if ($flag)