API Docs for: 7.2
Show:

MQA.MapCornerPlacement Class

Module: MQA

Constructs an MQA.MapCornerPlacement object.

Constructor

MQA.MapCornerPlacement

(
  • [mapCorner]
  • [offsetSize]
)

Parameters:

  • [mapCorner] MQA.MapCorner default = MQA.MapCorner.TOP_LEFT

    The map corner.

  • [offsetSize] MQA.Size default = (0,0)

    The width and height offset from the specified corner.

Example:

var control = new MQA.SmallZoom();
var placement = new MQA.MapCornerPlacement(MQA.MapCorner.TOP_LEFT, MQA.Size(5,5));

map.addControl(control, placement);

Properties

mapCorner

MQA.MapCorner

The map corner.

offsetSize

MQA.Size

The offset size of the object.

Methods

createImage

() HTMLElement

Returns <HTMLElement>

getMapCorner

() MQA.MapCorner

Returns the map corner.

Returns <MQA.MapCorner>

getOffsetSize

() MQA.Size

Returns the offset size.

Returns <MQA.Size>

makePointClass

(
  • cast
)
Function

Parameters:

Returns <Function>