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

Offset parameter for overlapping features #344

Open
yoshida-gisc opened this issue Aug 24, 2021 · 1 comment
Open

Offset parameter for overlapping features #344

yoshida-gisc opened this issue Aug 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@yoshida-gisc
Copy link

What do you want the feature to do?
Could we add a offset parameter for lines (or polygons) to visualize overlapping (multiple) features?
The road links or train networks are usually provided as one single line. But, the feature is actually multiple "lines".

Similar examples
The images are in the link below.
https://gis.stackexchange.com/questions/333819/display-lines-which-share-segments-by-offsetting-them-only-where-they-overlap

@yoshida-gisc yoshida-gisc added the enhancement New feature or request label Aug 24, 2021
@dcooley
Copy link
Collaborator

dcooley commented Aug 24, 2021

The add_path() function has an offset argument

from `?add_path

offset | The offset to draw each path with, relative to the width of the path. Negative offset is to the left hand side, and positive offset is to the right hand side. 0 extrudes the path so that it is centered at the specified coordinates.

You have to control this yourself. I don't see an easy way for mapdeck to find overlapping features itself and 'shift' them if they overlap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants