@magiclane/maps-sdk
    Preparing search index...

    Class BNGProjection

    BNGProjection class

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a new BNGProjection

      Parameters

      • params: { easting: number; northing: number }

        The parameters object

        • easting: number

          The easting coordinate

        • northing: number

          The northing coordinate

      Returns BNGProjection

    Properties

    _pointerId: any

    Accessors

    • get easting(): number

      Retrieves the easting of the point.

      Returns number

      The easting of the point as a number.

    • get gridReference(): string

      Retrieves the grid reference of the point.

      Returns string

      The grid reference of the point as a string.

    • set gridReference(gridReference: string): void

      Sets the grid reference of the point.

      Parameters

      • gridReference: string

        The grid reference of the point.

      Returns void

    • get northing(): number

      Retrieves the northing of the point.

      Returns number

      The northing of the point as a number.

    • get pointerId(): any

      Returns any

    • get type(): ProjectionType

      Retrieves the specific type of the projection.

      Returns ProjectionType

      The type of the projection as a ProjectionType enumeration.

    Methods

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void

    • Sets the easting and northing of the point.

      Parameters

      • params: { easting: number; northing: number }

        The parameters object

        • easting: number

          The easting coordinate of the point.

        • northing: number

          The northing coordinate of the point.

      Returns void