javascript - How to detect or check whether a Poly Line was Inside Another Poly Line or Overlap with Other Poly Line Using Google Maps -


i using google maps javascript api (gwt maps v3 api) poly line in google maps. there poly line overlap each other in picture: two poly line overlap

as can see picture above, there 2 poly line blue , purple overlap each other (they have same path). add red poly line among 2 poly line this: three poly line overlap

now need poly line overlap / intersect red poly line. there way in google maps javascript api? comment , answer appreciated. , regards.

you use geometry library

islocationonedge(point:latlng, poly:polygon|polyline, tolerance?:number)

to determine whether point falls on or near polyline, or on or near edge of polygon, pass point, polyline/polygon, , optionally tolerance value in degrees google.maps.geometry.poly.islocationonedge(). function returns true if distance between point , closest point on line or edge falls within specified tolerance. default tolerance value 10-9 degrees.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -