This commit is contained in:
Malte Hübner 2017-05-26 15:23:56 +02:00
parent aaa90f6d53
commit 2fba18d066
2 changed files with 10 additions and 3 deletions

View File

@ -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) {

7
web/info.php Normal file
View File

@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: maltehuebner
* Date: 26.05.17
* Time: 15:09
*/