From 55b1ef4f3d0a316619789ecc6ddd88d08aabad14 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sun, 22 Dec 2024 23:08:02 +0000 Subject: [PATCH] add leaflet libraries to importmap --- importmap.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/importmap.php b/importmap.php index b73b323..7a5c661 100644 --- a/importmap.php +++ b/importmap.php @@ -22,7 +22,14 @@ return [ '@symfony/stimulus-bundle' => [ 'path' => './vendor/symfony/stimulus-bundle/assets/dist/loader.js', ], - '@hotwired/turbo' => [ - 'version' => '7.3.0', + 'leaflet' => [ + 'version' => '1.9.4', + ], + 'leaflet/dist/leaflet.min.css' => [ + 'version' => '1.9.4', + 'type' => 'css', + ], + '@symfony/ux-leaflet-map' => [ + 'path' => './vendor/symfony/ux-leaflet-map/assets/dist/map_controller.js', ], ];