API Docs for: 7.2
Show:

MQA.ZIndex_Registry Class

Module: MQA

This library provides a basic mechanism for globally managing z-indexes. It works by providing a global (to the map) registry of z-index names to z-indexes. Every non-trivial attached dom element will use this registry to find the proper z-index, given its class name. Classes are similar to CSS classes in that they define a "class" of entities such as "poi", "poi-hover", "traffic-flow", etc.

By convention, the zIndex registry, which is just an object of key -> number mappings.

The ZIndex_Registry is an object containing symbolic name to zindex level constants. The ZIndex utility functions will look up constants in here for non-numeric zindex levels. All constants are absolute.

Properties

active_poi

81 final

When multiple poi collections are on the map, set top most to active_poi

background

0 final

control

100 final

Controls will have this zindex unless if overridden

custom_tiles

10 final

drawing_bounding_box

22 final

Drawing shape overlay bounding box

drawing_point

64 final

Drawing shape overlay point/vertex

drawing_shape

21 final

Drawing shape overlay

mqa_searchlayer_poi

2500 final

info bubble used in search layer

poi

80 final

Pois that have not had their zindex set will default to this.

poi_drag

2000 final

Elevated zindex of the poi while dragging

poi_leader

60 final

Poi leader lines will have this zindex

poi_shadow

50 final

Poi shadows will have this zindex

route_dragdot

65 final

Drag dot and related

route_poi

70 final

Route pois for stars and via points

route_ribbon

40 final

Route ribbon

route_ribbon_drag

2000 final

The drag ribbons zindex is elevated.

shape

20 final

General shapes and overlays that have not had their zindex property set

tiles

5 final

traffic_flow

30 final

Traffic flow overlay

traffic_poi

90 final

POIs specific to traffic

transit_lines

31 final

Transit lines overlay

transit_poi

90 final

window

1000 final

Windows will have this zindex unless if overridden

Methods

ZIndex_absolutize

(
  • zindex
)
Number

Absolutizes the zindex for a given tgtElt. This will return a zIndex value appropriate for setting on the style.zIndex property. Inputs can be a string, representing a symbolic zindex level in the registry, a non-zero number or blank/null/undefined. Setting to blank/null/undefined will clear the zindex on the element. Setting a number will result in the dom tree being walked (towards the root) in order to arrive at a zindex relative to the root zindex (found on the first parent element which had ZIndex_setupRoot called on it.

Parameters:

Returns <Number>

zindex

ZIndex_set

(
  • tgtElt
  • zindex
)

Absolutizes a given zindex and sets it on the target element. This function gracefully handles null tgt elements.

Parameters: