@mapsindoors/react-native-maps-indoors-google-maps
    Preparing search index...

    Class MPMultiPolygon

    A multiPolygon is a collection of MPPolygons that combine to form a single geographical area with multiple bodies.

    MPMultiPolygon

    Hierarchy (View Summary)

    Index

    Properties

    multiPolygon: string = "MultiPolygon"

    Typename for MPMultiPolygon.

    point: string = "Point"

    Typename for MPPoint.

    polygon: string = "Polygon"

    Typename for MPPolygon.

    Accessors

    • get bounds(): MPBounds

      Get the polygon's bounds. If bbox is present then that will be used.

      Returns MPBounds

    • get position(): MPPoint

      Get the position of the polygon, which is roughly its center.

      Returns MPPoint

    • get type(): string

      Get the type of the polygon. see MPGeometry#multiPolygon

      Returns string

    Methods

    • Checks whether a point is contained within the geometry.

      Parameters

      Returns Promise<boolean>

    • Calculates the squared distance from the point to the closest edge in the polygon.

      Parameters

      Returns Promise<number>

    • Get the polygon's area, this is the combined area of all the polygons in the multi-polygon.

      Returns Promise<number>

    • Stringifies the geometry to JSON.

      Returns string