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

Symbol layer offset should be relative to geometry when placement is line #7702

Open
adamal opened this issue Dec 13, 2018 · 0 comments
Open

Comments

@adamal
Copy link

adamal commented Dec 13, 2018

Motivation

My specific use case: Drawing arrows on line.

Problem with current functionality

My current implementation is two separate layers. One of type: 'line' the other (with the arrows) of type: 'symbol' with symbol-placement: 'line'

Giving the line layer an offset helps visualize when the track is going both ways. However it seems to be impossible to align the symbol layer with the line layer in this case. The line layer's 'offset' property is a single number relative to the line direction, whereas the symbol layers offset requires an absolute offset (with two values) relative to the map. This also applies symbol-placement: 'line'.
See screenshot of problem below.

Suggested solution

Change the offset behaviour of symbol layers to match line layers when symbol-placement: 'line'

screenshot 2018-12-13 at 17 21 24

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

No branches or pull requests

2 participants