mapdeck icon indicating copy to clipboard operation
mapdeck copied to clipboard

Offset parameter for overlapping features

Open yoshida-gisc opened this issue 4 years ago • 1 comments

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 avatar Aug 24 '21 07:08 yoshida-gisc

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.

dcooley avatar Aug 24 '21 09:08 dcooley