WIP.
This commit is contained in:
parent
aaa90f6d53
commit
2fba18d066
@ -267,12 +267,10 @@ class staticMapLite
|
|||||||
foreach ($this->polylines as $polyline) {
|
foreach ($this->polylines as $polyline) {
|
||||||
// set some local variables
|
// set some local variables
|
||||||
$polylineString = $polyline['polyline'];
|
$polylineString = $polyline['polyline'];
|
||||||
$colorRed = $polyline['Red'];
|
$colorRed = $polyline['colorRed'];
|
||||||
$colorGreen = $polyline['colorGreen'];
|
$colorGreen = $polyline['colorGreen'];
|
||||||
$colorBlue = $polyline['colorBlue'];
|
$colorBlue = $polyline['colorBlue'];
|
||||||
|
|
||||||
// clear variables from previous loops
|
|
||||||
|
|
||||||
$polylineList = \Polyline::decode($polylineString);
|
$polylineList = \Polyline::decode($polylineString);
|
||||||
|
|
||||||
$sourceLatitude = null;
|
$sourceLatitude = null;
|
||||||
@ -281,6 +279,8 @@ class staticMapLite
|
|||||||
$destinationLongitude = null;
|
$destinationLongitude = null;
|
||||||
|
|
||||||
$color = imagecolorallocate($this->image, $colorRed, $colorGreen, $colorBlue);
|
$color = imagecolorallocate($this->image, $colorRed, $colorGreen, $colorBlue);
|
||||||
|
imagesetthickness($this->image, 3);
|
||||||
|
//imageantialias($this->image, true);
|
||||||
|
|
||||||
while (!empty($polylineList)) {
|
while (!empty($polylineList)) {
|
||||||
if (!$sourceLatitude) {
|
if (!$sourceLatitude) {
|
||||||
|
7
web/info.php
Normal file
7
web/info.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: maltehuebner
|
||||||
|
* Date: 26.05.17
|
||||||
|
* Time: 15:09
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user