Saturday 7 January 2017

leaflet - Display overlapping polyline segments as multiple lines with offsets?


Selecting which polyline is displayed on top in case of segment overlaps seems to be quite a FAQ, however, I would like to find a way to display overlapping polyline segments side-by-side, i.e. as multiple lines separated by offsets, similar to how Google Transit displays branching transit services.


Google Transit


Is there a Leaflet library that does that?



Answer



there appears to be one called Polyline Offset which should allow you to control the rendering of polylines.


There's a demo here and a screen shot of one of the other demos:-


enter image description here



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...