-
Notifications
You must be signed in to change notification settings - Fork 55
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
show static map image instead of mapbox #164
Comments
Good question. There are a few ways to make this work
Let me know if any of these options would work well. |
Thanks for you suggestions. We now opted for simply copying the image into the resulting output ( However, I now see that on the timetable pages, each table get's to show a route-specific map as well. We also have route specific schematic maps and I'd like to insert them as well. For this purpose I could add another column into the The reason why I think it's necessary to have this done by pug (as opposed to hard coding the filepath) is that some of the routes are shown collectively on the same schematic map because their are sharing a larger part and individually branch off. |
I'd suggest naming your map images to exactly match the route_short_name of each route (or route_id if you prefer). So like 292.jpg for route 292. Then in your custom template you can just have it load an image. You'll still need to copy in the images to your output folder, or host them somewhere else. Because each timetable page can have multiple timetables and each timetable could be for multiple routes, you'd need to do something like
This would load two maps if it is a multi-route timetable. Instead of you could name images based on timetable_page_id if you have combined images for multi-route timetables. img(src= You can set your timetable_page_id to be anything you'd like, so it could exactly match the route_short_name to make it easy to manage map images. |
Hi,
just as the title says: I got an image of our route network that I simply want to display. I managed to insert a simple image tag (
overview.pug
):Of course
img/map.png
does not yet reside inside the output folder. Is there a way to have PUG copy this file into the respective output location? I mount-binding a folder into the docker container, so that the location of the image is correct, from within the docker container.Any hint much appreciated.
The text was updated successfully, but these errors were encountered: