Function pointIsInPolygonOrMultiPolygon

  • Hit-tests a point against a polygon-or-multipolygon coordinate structure by detecting the array shape at runtime. Required because unit/floor coordinates are typed as Location[] but for MultiPolygon geometries they are actually Location[][]. Without this dispatch, MultiPolygon units (e.g. parking with multiple disjoint sections) are never selectable from click handlers.

    Parameters

    Returns boolean

Generated using TypeDoc