Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PolyUtil

Hierarchy

  • PolyUtil

Index

Methods

Methods

Static clipPolygon

  • Clips the polygon geometry defined by the given points by rectangular bounds. 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.

    Parameters

    Returns Point[]