Gjsify LogoGjsify Logo

Defines the area of a ChamplainMapDataSource that contains data.

record

Hierarchy

  • BoundingBox

Index

Constructors

Properties

bottom: number

bottom coordinate

field
left: number

left coordinate

field
right: number

right coordinate

field
top: number

top coordinate

field
name: string

Methods

  • covers(latitude: number, longitude: number): boolean
  • Checks whether bbox covers the given coordinates.

    Parameters

    • latitude: number

      the latitude of the point

    • longitude: number

      the longitude of the point

    Returns boolean

  • extend(latitude: number, longitude: number): void
  • Extend the bounding box so it contains a point with latitude and longitude. Do nothing if the point is already inside the bounding box.

    Parameters

    • latitude: number

      the latitude of the point

    • longitude: number

      the longitude of the point

    Returns void

  • free(): void
  • Frees a bounding box structure created with champlain_bounding_box_new() or champlain_bounding_box_copy().

    Returns void

  • getCenter(): [number, number]
  • Gets the center's latitude and longitude of the box to latitude and longitude.

    Returns [number, number]

  • isValid(): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method