Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Laravel Mysql Spatial | 713 | 21 | 16 | a year ago | 26 | October 17, 2020 | 78 | other | PHP | |
MySQL Spatial Data Extension integration with Laravel. | ||||||||||
Laravel Eloquent Spatial | 191 | 14 days ago | 24 | February 28, 2023 | 3 | mit | PHP | |||
Laravel Eloquent spatial package. | ||||||||||
Nova Map | 110 | a year ago | 10 | June 04, 2022 | 6 | Vue | ||||
Laravel Nova Map Field | ||||||||||
Laravel Geo | 46 | 1 | a year ago | 12 | March 17, 2022 | 5 | gpl-3.0 | PHP | ||
GeoSpatial integration on Laravel 5.2+ that supports MySQL and PostgreSQL. | ||||||||||
Indonesianboundaries | 8 | a year ago | mit | TypeScript | ||||||
Indonesian Boundaries | ||||||||||
Laravel Spatial | 3 | 4 days ago | mit | PHP | ||||||
Laravel Eloquent spatial package | ||||||||||
Laravel Spatial | 2 | 4 years ago | 3 | other | PHP | |||||
Laravel 5 package working with spatial data |
Is a Laravel package that provides a basic map of the country of Indonesia.
The spatial source I use comes from Badan Pusat Statistik (BPS - Statistics Indonesia).
Due to the limited time for the maintainer to search for the latest data for each boundary, we are not obliged to make the changes you requested ASAP.
If you have the latest data and want us to update the data we have, please send it to [email protected].
Data can be either JSON or SHP provided it has a region code in its properties.
I don't know exactly, but it's been tested on
composer require octopyid/indonesian-boundaries:dev-main
php artisan vendor:publish --provider="Octopy\Indonesian\Boundaries\ServiceProvider"
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Map Example</title>
@boundaryStyles
</head>
<body>
<div id="map" style="height: 990px"></div>
@boundaryScript
<script type="text/javascript">
$boundary.render();
</script>
</body>
</html>
<?php
namespace App\Http\Controllers;
use Exception;
use Illuminate\Contracts\View\View;
use Illuminate\Contracts\View\Factory;
use Octopy\Indonesian\Boundaries\Boundary;
use Octopy\Indonesian\Boundaries\Draw\Draw;
use Octopy\Indonesian\Boundaries\Config\Style;
use Illuminate\Contracts\Foundation\Application;
class MapController extends Controller
{
/**
* @param Boundary $boundary
* @return Application|Factory|View
* @throws Exception
*/
public function index(Boundary $boundary)
{
$map = $boundary->element('map');
$map->center(-0.487177, 116.317060);
$map->draw(function (Draw $draw) {
# Draw provincial boundaries
$draw->province([61, 62, 63, 64, 65])->style(function (Style $style) {
$style->color('#0F0F0F')
->fillColor('#556EE6')
->fillOpacity(0.2);
});
});
return view('map');
}
}
The MIT License (MIT). Please see License File for more information.