Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kaartmateriaal - Submission PDF showing leaflet map #4951

Open
Tracked by #4880
robinmolen opened this issue Dec 18, 2024 · 2 comments
Open
Tracked by #4880

Kaartmateriaal - Submission PDF showing leaflet map #4951

robinmolen opened this issue Dec 18, 2024 · 2 comments

Comments

@robinmolen
Copy link
Contributor

robinmolen commented Dec 18, 2024

Thema / Theme

Frontend

Omschrijving / Description

The current submission PDF's show only the latitude longitude values of a map. This is already an big user-unfriendly thing, and the new different types of interactions only make it worse.

Screenshot 2024-12-18 at 12 57 53

Added value / Toegevoegde waarde

I think we should show a map, using the component specified tile layer, that displays the user data (so, with a marker, polygon, circle or polyline).

Maybe that map layers and the nearest address would also be nice

Aanvullende opmerkingen / Additional context

No response

@robinmolen robinmolen added triage Issue needs to be validated. Remove this label if the issue considered valid. topic: kaartmateriaal labels Dec 18, 2024
@LaurensBurger
Copy link
Collaborator

#3104

@sergei-maertens sergei-maertens added this to the Release 3.1.0 milestone Jan 6, 2025
@sergei-maertens sergei-maertens removed the triage Issue needs to be validated. Remove this label if the issue considered valid. label Jan 6, 2025
@robinmolen
Copy link
Contributor Author

My initial thought was to create the leaflet map in the template:

We would need a js script that initializes leaflet maps for X amount of specific HTML elements and adds the geometry shapes to these maps.

Using data attributes we can communicate which elements should display leaflet maps, something like <div data-leaflet-map="true"></div>, and which information should be displayed in the map (geometry information and tile layer url).

But i'm afraid js won't be executed when we create the pdf Kozea/WeasyPrint#454, so we will have to find a creative solution for this problem..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants