Constructors

  • Create a new map location. Coordinates can be passed either as two arguments, or as a single argument.

    Parameters

    • lon: number
    • lat: number

    Returns LonLat

  • Create a new map location. Coordinates can be passed either as two arguments, or as a single argument.

    Parameters

    • lonlat: number[]

    Returns LonLat

Properties

lat: number

{Number} The y-axis coordinate in map units. If your map is in a geographic projection, this will be the Latitude. Otherwise, it will be the y coordinate of the map location in your map units.

lon: number

{Number} The x-axis coordinate in map units. If your map is in a geographic projection, this will be the Longitude. Otherwise, it will be the x coordinate of the map location in your map units

Methods

  • A new OpenLayers.LonLat object with the lon and lat passed-in added to this’s.

    Parameters

    • lon: number
    • lat: number

    Returns LonLat

  • New OpenLayers.LonLat object with the same lon and lat values

    Returns LonLat

  • Boolean value indicating whether the passed-in OpenLayers.LonLat object has the same lon and lat components as this. Note: if ll passed in is null, returns false.

    Parameters

    Returns boolean

  • Shortened String representation of OpenLayers.LonLat object.

    Returns string

  • Transform the LonLat object from source to dest. This transformation is in place: if you want a new lonlat, use .clone() first.

    Parameters

    Returns LonLat

  • Transform the LonLat object from source to dest. This transformation is in place: if you want a new lonlat, use .clone() first.

    Parameters

    • source: string
    • dest: string

    Returns LonLat

  • Returns a copy of this lonlat, but wrapped around the "dateline" (as specified by the borders of maxExtent).

    Parameters

    Returns LonLat