Various utility functions for polygon geometries.


Function Returns Description
clipPolygon(<Point[]> points, <Bounds> bounds, <Boolean> round?) Point[] Clips the polygon geometry defined by the given points by the given bounds (using the Sutherland-Hodgeman algorithm). Used by Leaflet to only show polygon points that are on the screen or near, increasing performance. Note that polygon points needs different algorithm for clipping than polyline, so there's a seperate method for it.
Props L.Wrld.Prop
Themes L.Wrld.themes
UI Layers L.Marker L.Popup
Heatmaps L.Wrld.Heatmap
Events Event objects
Services (Optional) WrldPoiApi