API Docs for: 7.2
Show:

MQA.WindowManager Class

Module: MQA

Core module to extend the tilemap with a window manager. The window manager is responsible for managing the registry of visible windows on the map. This includes roll-overs, info-windows and otherwise. The actual definition of what constitutes a window is somewhat vague and essentially represents an object that exposes certain properties and methods.

Constructor

MQA.WindowManager

(
  • map
)

Parameters:

Properties

globalSurface

HTMLElement

registry

Object

The registry is organized with keys of the form {objectid}:{id} where {objectid} is the object id of the opener (if existing) and {id} is the unique id of the window with respect to the opener.

screenSurface

HTMLElement

Methods

close

(
  • id
  • opener
)

Close a window by opener and id

Parameters:

closeAll

(
  • id
  • opener
)

Close all windows. If id and/or opener is specified then close only those that match.

Parameters:

each

(
  • callback
)
Object

Callback with each opened window. If the callback returns true, then iteration is aborted and the value is returned.

Parameters:

Returns <Object>

find

(
  • id
  • opener
)

Find a window by opener and id

Parameters:

onMapInit$After

()

Add the window manager to the map - added by MQA.WindowManager

open

(
  • id
  • opener
  • wnd
)

Register a window by opener and id. Any existing window with the same opener and id will first be dispose()'d.

Parameters:

resetTransform

(
  • transform
)

This object acts as a Layer and implements this method in order to be privy to transform changes.

Parameters: