Replies: 2 comments 2 replies
-
(no idea about the offset question, above my pay grade, but...) on the "information lost because data overlaps" side of things, can you perhaps try experimenting with "casing" and "fill" (on the road) and very widely spaced dots (on the hiking route) so that you can see the road underneath? https://map.atownsend.org.uk/maps/map/map.html#18/53.89625/-2.22001 is a Carto CSS style, but broadly the same controls are available to vector styles too. I've not tried a vector map showing hiking routes yet, but |
Beta Was this translation helpful? Give feedback.
-
tilemaker doesn't have any capability to offset a line itself (that sort of heavy geometry lifting is really something you need PostGIS for) or anything to determine the direction of a way. I don't think the latter would be impossible to achieve - we already have Lua functions to calculate the area of a way, for example. But I'm not sure how exactly we'd do it. (Maybe a Lua accessor for the start lat/lon and end lat/lon of the line, and you could then calculate the bearing yourself in Lua? Would that work?) I am a bit bemused as to why it's generating two lines though. Is this two different hiking relations or something? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm playing around with placing coloured hiking routes next to paths/roads. It's easy to place them on top of the paths but a lot of information is hidden because they overlap. I tried using the
line-offset
property in Maputnik which generally does the job. Unfortunately, it happens quite often that there are two ways in the opposite direction and theline-offset
property reacts to that and offsets ways going forward to the right and ways going backward to the left. This creates too many undesired lines. Take a look at the following picture:I would only like to see one of the red lines here. I don't care about the direction of ways and I would like to offset all of them to one side. If it was possible to determine the direction of a way/relation in
tilemaker
, then I could adjust theline-offset
property accordingly. Is that possible?I would also like to offset more coloured lines next to each other if they are present. This is the roughly the desired result that I would like to achieve. A path and multiple coloured lines right next to it. The number of these coloured paths can be anywhere from zero to four or five.
My main question probably is if this is something solvable on
tilemaker
level or if it's only probably a style issue.Thanks for any input!
Cheers,
Patrik
Beta Was this translation helpful? Give feedback.
All reactions