maps.nyc.gov

Class: LayerFade

nyc.ol.control.LayerFade(options)

new LayerFade(options)

Class that provides layer swiping effect
Parameters:
Name Type Description
options nyc.ol.control.LayerFade.Options Constructor options
Mixes In:
Source:

Extends

Methods

cancel()

Clear the display
Source:

getContainer() → {JQuery}

Overrides:
Source:
Returns:
Type
JQuery

(abstract) getElem() → {JQuery}

A method to return an element in the container
Inherited From:
Source:
Returns:
The element
Type
JQuery

Type Definitions

Options

Constructor options for nyc.ol.control.LayerFade
Type:
  • Object
Properties:
Name Type Attributes Default Description
map ol.Map The map on which to perform layer fades
=layers Array.<ol.layer.Base> Layers to choose from (default is all layers with a name property)
autoFadeInterval number <optional>
10000 The animation interval for auto fade in milliseconds
callback function <optional>
A function to be called when JQueryUI has loaded
Source:

nyc-lib: Class: LayerFade

maps.nyc.gov

Class: LayerFade

nyc.ol.control.LayerFade(options)

new LayerFade(options)

Class that provides layer swiping effect
Parameters:
Name Type Description
options nyc.ol.control.LayerFade.Options Constructor options
Mixes In:
Source:

Extends

Methods

cancel()

Clear the display
Source:

getContainer() → {JQuery}

Overrides:
Source:
Returns:
Type
JQuery

(abstract) getElem() → {JQuery}

A method to return an element in the container
Inherited From:
Source:
Returns:
The element
Type
JQuery

Type Definitions

Options

Constructor options for nyc.ol.control.LayerFade
Type:
  • Object
Properties:
Name Type Attributes Default Description
map ol.Map The map on which to perform layer fades
=layers Array.<ol.layer.Base> Layers to choose from (default is all layers with a name property)
autoFadeInterval number <optional>
10000 The animation interval for auto fade in milliseconds
callback function <optional>
A function to be called when JQueryUI has loaded
Source: