bbecquet / Leaflet.PolylineOffset

Apply a relative pixel offset to polylines without changing their coordinates.
MIT License
152 stars 32 forks source link

Add Polygon support #2

Open bbecquet opened 10 years ago

bbecquet commented 10 years ago

As L.Polygon extends L.Polyline, it already works mostly, except for the segment joining the last and first point. It needs to be taken into account by the offset process, including the angles.