From 2fba18d06609fd5f1503df5664e11b71bea68488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Hu=CC=88bner?= Date: Fri, 26 May 2017 15:23:56 +0200 Subject: [PATCH] WIP. --- src/staticMapLite.php | 6 +++--- web/info.php | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 web/info.php diff --git a/src/staticMapLite.php b/src/staticMapLite.php index 567b7f8..64cc7f5 100644 --- a/src/staticMapLite.php +++ b/src/staticMapLite.php @@ -267,12 +267,10 @@ class staticMapLite foreach ($this->polylines as $polyline) { // set some local variables $polylineString = $polyline['polyline']; - $colorRed = $polyline['Red']; + $colorRed = $polyline['colorRed']; $colorGreen = $polyline['colorGreen']; $colorBlue = $polyline['colorBlue']; - // clear variables from previous loops - $polylineList = \Polyline::decode($polylineString); $sourceLatitude = null; @@ -281,6 +279,8 @@ class staticMapLite $destinationLongitude = null; $color = imagecolorallocate($this->image, $colorRed, $colorGreen, $colorBlue); + imagesetthickness($this->image, 3); + //imageantialias($this->image, true); while (!empty($polylineList)) { if (!$sourceLatitude) { diff --git a/web/info.php b/web/info.php new file mode 100644 index 0000000..c42d5a3 --- /dev/null +++ b/web/info.php @@ -0,0 +1,7 @@ +