camper/web/templates/public
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
..
campsite Add check_in and check_out fields to campsite_type 2024-01-22 20:19:19 +01:00
payment Use redsys_environment to choose the correct URL to send the payment to 2023-10-27 17:03:50 +02:00
booking.gohtml Add rel="terms-of-service" to booking form’s link to conditions 2024-01-22 03:41:54 +01:00
campground.gohtml Add a polygon around each accommodation on the public map 2024-01-25 04:28:51 +01:00
form.gohtml Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
home.gohtml Make the slogan user-editable and translatable 2024-01-23 11:52:39 +01:00
layout.gohtml Remove trailing slash from <link> in public layout 2024-01-21 21:12:12 +01:00
legal.gohtml Add management of legal texts 2023-12-22 02:23:18 +01:00
location.gohtml Added copyright statement to files modified by Oriol 2024-01-16 17:58:49 +01:00
page.gohtml Add the pages section 2023-08-08 20:09:57 +02:00
services.gohtml Added copyright statement to files modified by Oriol 2024-01-16 17:58:49 +01:00
surroundings.gohtml Add ad management for surroundings 2024-01-23 14:53:15 +01:00