- public function getMultiMap(string $caption, int $updated, float $latitude, float $longitude, $coordinates = [], int $zoom = self::zoom, int $width = self::width, int $height = self::height): array {
+ public function getMultiMap(string $caption, int $updated, array $coordinates, int $width = self::width, int $height = self::height): array {
+ //Set latitudes
+ $latitudes = array_map(function ($v) { return $v['latitude']; }, $coordinates);
+
+ //Set longitudes
+ $longitudes = array_map(function ($v) { return $v['longitude']; }, $coordinates);
+
+ //Set latitude
+ $latitude = round((min($latitudes)+max($latitudes))/2, 6);
+
+ //Set longitude
+ $longitude = round((min($longitudes)+max($longitudes))/2, 6);
+
+ //Set zoom
+ $zoom = $this->getMultiZoom($latitude, $longitude, $coordinates, $width, $height);
+