1. Go to this page and download the library: Download kwasii/livewire-mapcn library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kwasii / livewire-mapcn example snippets
// In your Livewire component
$this->dispatch("map:update-route-data-{$routeId}", [
'coordinates' => $newCoordinates,
]);
// In your Livewire component
$this->dispatch("map:update-cluster-data-{$clusterId}",
\Kwasii\LivewireMapcn\Support\GeoJSON::fromArray($filteredData)
);