Skip to content

Commit

Permalink
Update GeoJson.php (#1874)
Browse files Browse the repository at this point in the history
* Update GeoJson.php

* StyleCI Fix

use casting instead of php function
  • Loading branch information
FatihKoz authored Sep 10, 2024
1 parent 7c696b8 commit 3b23145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/GeoJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function addPoint($lat, $lon, array $attrs)
$this->line_coords[] = [$lon, $lat];

if (array_key_exists('alt', $attrs)) {
$point[] = $attrs['alt'];
$point[] = (float) $attrs['alt'];
}

$this->point_coords[] = new Feature(new Point($point), $attrs);
Expand Down

0 comments on commit 3b23145

Please sign in to comment.