API Docs for: 7.2
Show:

MQA.BasicWindowManager Class

Module: MQA

This window manager handles default dotcom and B2b API semantics for opening and closing windows in response to poi events. Parameters can be customized by setting properties on the map.windowManager object:

  • scrollBorder{Left|Right|Top|Bottom} = border to subtract from map edges for "scroll proof" area around map edges (default=50px) Override for small maps
  • maxSizeDivisor = Divisor to apply when determining maximum width and height of infowindows based on the width and height of the map (default=2). ie: maxWidth=map.width/maxSizeDivisor. Override for small maps

Properties

autoPanToView

Unknown

When false, infowindows will not try and adjust the map by panning to show their full contents. When true, an infowindow may pan the map to make be 100% visible.

globalSurface

HTMLElement

Inherited from MQA.WindowManager

registry

Object

Inherited from MQA.WindowManager

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

Inherited from MQA.WindowManager

Methods

_onRolloverEvent

(
  • poi
  • eventType
)
private

Bound to a Rollover window (BasicWindow) onEvent method.

Parameters:

close

(
  • id
  • opener
)

Inherited from MQA.WindowManager

Close a window by opener and id

Parameters:

closeAll

(
  • id
  • opener
)

Inherited from MQA.WindowManager

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

Parameters:

configureRolloverWindowContents

() private

If rollover content is set, use that. Otherwise use info content.

each

(
  • callback
)
Object

Inherited from MQA.WindowManager

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
)

Inherited from MQA.WindowManager

Find a window by opener and id

Parameters:

hitchToWindowModule

() private

Hitches the function such that it will be invoked after the basicwindow module is available.

onMapInit$After

()

Inherited from MQA.WindowManager

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

onPoiActivate

()

Completely override the poi activate behavior. Behavior is to open the info window (if not already open) size and position it, and bring it to the front, potentially scrolling the map as needed.

onPoig

(
  • poi
  • isOver
)

This method can be overridden/extended to specially handle POI mouse overs. If isOver is true, then the mouse just entered the poi. If isOver is false then the mouse left it.

Parameters:

onZoomStart$After

()

When starting to zoom, notify the window manager to close all info and rollover windows. Added by mqa.module.basicwindowmanager.js

open

(
  • id
  • opener
  • wnd
)

Inherited from MQA.WindowManager

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

Parameters:

openPoiRollover

(
  • poi
)

Parameters:

openPoiWindow

(
  • poi
  • autoPanToView
)

Opens an info window for a poi

Parameters:

resetTransform

(
  • transform
)

Inherited from MQA.WindowManager

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

Parameters:

resizePoiWindow

(
  • poi
  • x param
)

Resize the window by the provided dimenisions

Parameters:

  • poi MQA.Poi
  • x param Integer

    {Integer} y