camper/web/static
jordi fita mas 8d49857dae Add a polygon around each accommodation on the public map
I can not use <a> in that map because Leaflet handles the mouse over
before the anchors sees it, thus it is impossible to click on them; i
have to use a Leaflet layer.

Fortunately, i can just use the <path>’s coordinates as
the polygon points, because with CRS.Simple the coordinates map to
pixel, except for the reversed Y/latitude coordinate. Unfortunately,
<path> coordinates are not straightforward to get: I have to follow the
drawing coordinates, taking into account the current transformation
(CTM), and keeping the last point around for relative coordinates.
Bézier curves are simplified to a straight line from start to end.

There is one single accommodation that started with a relative move
command (m), which apparently have to be treated as an absolute
move (M), but subsequent pairs are treated as relative coordinates[0].

It was easier for me to convert that relative move to absolute and add
a relative lineto command (l) to the next pair.

For now, all i do is highlight the accommodation and zoom it on click,
because i do not know how i should the accommodation’s information.

[0]: https://www.w3.org/TR/SVG11/paths.html#PathDataMovetoCommands
2024-01-25 04:28:51 +01:00
..
camping-association Add bottom border to heading and add camping association images 2023-12-22 00:20:53 +01:00
ckeditor5@40.2.0 Allow updating images in CKEditor-“powered” textarea 2024-01-16 01:26:35 +01:00
fonts Add the minimal CSS for the admin section from Numerus 2023-09-28 02:23:25 +02:00
leaflet@1.9.4 Show campground map using leaflet 2024-01-14 22:31:13 +01:00
alpinejs@3.13.3.min.js Replace contact page with location 2023-12-21 21:17:04 +01:00
camper.css Fill the immediate path inside map’s anchors, and remove one extra group 2024-01-25 01:26:02 +01:00
camper.js Remove the extra <div> when saving content from CKEditor 2024-01-21 21:04:51 +01:00
default_avatar.svg Add profile form, inside a user menu 2023-07-26 20:46:09 +02:00
favicon.ico Add favicon 2023-07-26 18:59:17 +02:00
htmx@1.9.3.min.js Add the logout button 2023-07-26 13:49:47 +02:00
icons.css Add cabin, flask_gear, grate_droplet, shirt, shop, and tent icons 2024-01-24 19:32:01 +01:00
jquery@3.7.1.min.js Add the first test for the front end design 2023-09-05 04:40:48 +02:00
map.js Add a polygon around each accommodation on the public map 2024-01-25 04:28:51 +01:00
public.css Add ad management for surroundings 2024-01-23 14:53:15 +01:00
slick@1.8.1.css Add the first test for the front end design 2023-09-05 04:40:48 +02:00
slick@1.8.1.min.js Add the first test for the front end design 2023-09-05 04:40:48 +02:00
sortable@1.15.1.min.js Add user-defined order to campsite types, options, seasons and carousels 2023-12-20 19:52:14 +01:00