[OpenLayers-Users] Visually separating duplicate line strings

Chris W chrisw.osgeo at psychogeeks.com
Sun Nov 3 20:39:09 PST 2013


Hello All,

I have an application that depicts a route from A to B to C etc. Each 
leg is a multi-linestring geometry served as GeoJSON (that can be 
changed) with the line style changing along its length.  In some 
circumstances the route goes A to B to A, resulting in two geometries 
lying directly on top of each other.   Is there some mechanism I can use 
to offset these lines by a pixel or two from their notional path on the 
viewer's screen so they can be seen?

Regards,
Chris W


More information about the Users mailing list