usage of this type is discouraged. To add a tile layer to the map, please use the addRasterTileLayer method on the map instance.

interface IRasterTileLayer {
    alpha: boolean;
    alwaysInRange: boolean;
    attribution: string;
    backBuffer: HTMLElement;
    backBufferLonLat: { lat: number; lon: number };
    backBufferResolution: number;
    backBufferTimerId: number;
    buffer: number;
    className: string;
    displayInLayerSwitcher: boolean;
    displayOutsideMaxExtent: boolean;
    div: HTMLElement;
    eventListeners: {};
    events: Events;
    grid: Tile[][];
    gridLayout: {
        startcol: number;
        startrow: number;
        tilelat: number;
        tilelon: number;
    };
    gridResolution: number;
    gutter: number;
    id: string;
    imageSize: Size;
    inRange: boolean;
    isBaseLayer: boolean;
    loading: boolean;
    map: Map;
    maxExtent: Bounds;
    maxResolution: number;
    maxScale: number;
    metadata: {};
    minExtent: Bounds;
    minResolution: number;
    minScale: number;
    name: string;
    numLoadingTiles: number;
    numZoomLevels: number;
    opacity: number;
    options: { tileOptions?: TileOptions };
    params: {};
    projection: Projection;
    ratio: number;
    removeBackBufferDelay: number;
    reproject: boolean;
    RESOLUTION_PROPERTIES: string[];
    resolutions: any[];
    rowSign: number;
    scales: any[];
    serverResolutions: number[];
    singleTile: boolean;
    sphericalMercator: boolean;
    tileClass: Tile;
    tileOptions: {};
    tileOrigin: LonLat;
    tileOriginCorner: string;
    tileSize: Size;
    transitionEffect: string;
    transitionendEvents: string[];
    units: string;
    url: string[];
    visibility: boolean;
    wrapDateLine: boolean;
    zoomOffset: number;
    addOptions(newOptions: {}, reinitialize: boolean): void;
    addTile(bounds: Bounds, position: number): Tile;
    adjustBounds(bounds: Bounds): Bounds;
    calculateInRange(): boolean;
    calculateResolutions(props: {}): number[];
    clone(obj?: any): XYZ;
    destroy(): void;
    display(display: boolean): void;
    getExtent(): Bounds;
    getFullRequestString(newParams: {}, altUrl: string): string;
    getImageSize(): Size;
    getLonLatFromViewPortPx(viewPortPx: Pixel): LonLat;
    getResolution(): number;
    getResolutionForZoom(zoom: number): number;
    getTileBounds(viewPortPx: Pixel): Bounds;
    getTilesBounds(): Bounds;
    getViewPortPxFromLonLat(lonlat: LonLat, resolution: number): Pixel;
    getVisibility(): boolean;
    getZIndex(): number;
    getZoomForExtent(extent: Bounds, closest?: boolean): number;
    getZoomForResolution(resolution: number, closest?: boolean): number;
    initialize(name: string, url: null | string, options?: any): this;
    initResolutions(): void;
    mergeNewParams(newParams: {}): boolean;
    mergeParams(params: ObjectLiteral): void;
    moveByPx(dx: number, dy: number): void;
    moveTo(bounds: Bounds, zoomChanged: boolean, dragging: boolean): void;
    onMapResize(): void;
    redraw(force?: boolean): boolean;
    removeBackBuffer(): void;
    removeMap(map: Map): void;
    setIsBaseLayer(isBaseLayer: boolean): void;
    setMap(map: Map): void;
    setMinZoom(minZoom: number): void;
    setName(newName: string): void;
    setOpacity(opacity: number): void;
    setTileSize(size: Size): void;
    setUrl(newUrl: string): void;
    setVisibility(visibility: boolean): void;
    setZIndex(zIndex: number): void;
}

Hierarchy (View Summary)

  • XYZ
    • IRasterTileLayer

Properties

alpha: boolean

The layer's images have an alpha channel. Default is false.

alwaysInRange: boolean

If a layer's display should not be scale-based, this should be set to true. This will cause the layer, as an overlay, to always be 'active', by always returning true from the calculateInRange() function.

If not explicitly specified for a layer, its value will be determined on startup in initResolutions() based on whether or not any scale-specific properties have been set as options on the layer. If no scale-specific options have been set on the layer, we assume that it should always be in range.

attribution: string

Attribution string, displayed when an <OpenLayers.Control.Attribution> has been added to the map.

backBuffer: HTMLElement

Property: backBuffer {DOMElement} The back buffer.

backBufferLonLat: { lat: number; lon: number }

Property: backBufferLonLat {Object} The top-left corner of the current back buffer. Includes lon and lat properties. This object is updated each time a back buffer is created.

backBufferResolution: number

Property: backBufferResolution {Number} The resolution of the current back buffer. This property is updated each time a back buffer is created.

backBufferTimerId: number

Property: backBufferTimerId {Number} The id of the back buffer timer. This timer is used to delay the removal of the back buffer, thereby preventing flash effects caused by tile animation.

buffer: number

APIProperty: buffer {Integer} Used only when in gridded mode, this specifies the number of extra rows and columns of tiles on each side which will surround the minimum grid tiles to cover the map. For very slow loading layers, a larger value may increase performance somewhat when dragging, but will increase bandwidth use significantly.

className: string

APIProperty: className {String} Name of the class added to the layer div. If not set in the options passed to the constructor then className defaults to "olLayerGridSingleTile" for single tile layers (see ), and "olLayerGrid" for non single tile layers.

Note:

The displaying of tiles is not animated by default for single tile layers - OpenLayers' default theme (style.css) includes this: (code) .olLayerGrid .olTileImage { -webkit-transition: opacity 0.2s linear; -moz-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear; transition: opacity 0.2s linear; } (end) To animate tile displaying for any grid layer the following CSS rule can be used: (code) .olTileImage { -webkit-transition: opacity 0.2s linear; -moz-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear; transition: opacity 0.2s linear; } (end) In that case, to avoid flash effects, should not be zero.

displayInLayerSwitcher: boolean

Display the layer's name in the layer switcher. Default is true

displayOutsideMaxExtent: boolean

Request map tiles that are completely outside of the max extent for this layer. Defaults to false.

div: HTMLElement
eventListeners: {}

An optional object whose properties will be set on the layer. Any of the layer properties can be set as a property of the options object and sent to the constructor when the layer is created.

events: Events

APIProperty: events {<OpenLayers.Events>}

Register a listener for a particular event with the following syntax: (code) layer.events.register(type, obj, listener); (end)

Listeners will be called with a reference to an event object. The properties of this event depends on exactly what happened.

All event objects have at least the following properties: object - {Object} A reference to layer.events.object. element - {DOMElement} A reference to layer.events.element.

Supported map event types: loadstart - Triggered when layer loading starts. When using a Vector layer with a Fixed or BBOX strategy, the event object includes a filter property holding the OpenLayers.Filter used when calling read on the protocol. loadend - Triggered when layer loading ends. When using a Vector layer with a Fixed or BBOX strategy, the event object includes a response property holding an OpenLayers.Protocol.Response object. visibilitychanged - Triggered when the layer's visibility property is changed, e.g. by turning the layer on or off in the layer switcher. Note that the actual visibility of the layer can also change if it gets out of range (see ). If you also want to catch these cases, register for the map's 'changelayer' event instead. move - Triggered when layer moves (triggered with every mousemove during a drag). moveend - Triggered when layer is done moving, object passed as argument has a zoomChanged boolean property which tells that the zoom has changed. added - Triggered after the layer is added to a map. Listeners will receive an object with a map property referencing the map and a layer property referencing the layer. removed - Triggered after the layer is removed from the map. Listeners will receive an object with a map property referencing the map and a layer property referencing the layer.

grid: Tile[][]

Property: grid {Array(Array(<OpenLayers.Tile>))} This is an array of rows, each row is an array of tiles.

gridLayout: {
    startcol: number;
    startrow: number;
    tilelat: number;
    tilelon: number;
}

Property: gridLayout {Object} Object containing properties tilelon, tilelat, startcol, startrow

gridResolution: number

Property: gridResolution {Number} The resolution of the current grid. Used for backbuffer and client zoom. This property is updated every time the grid is initialized.

gutter: number

Determines the width (in pixels) of the gutter around image tiles to ignore. By setting this property to a non-zero value, images will be requested that are wider and taller than the tile size by a value of 2 x gutter. This allows artifacts of rendering at tile edges to be ignored. Set a gutter value that is equal to half the size of the widest symbol that needs to be displayed. Defaults to zero. Non-tiled layers always have zero gutter.

id: string
imageSize: Size

For layers with a gutter, the image is larger than the tile by twice the gutter in each dimension.

inRange: boolean

The current map resolution is within the layer's min/max range. This is set in <OpenLayers.Map.setCenter> whenever the zoom changes.

isBaseLayer: boolean

APIProperty: isBaseLayer Default is true, as this is designed to be a base tile source.

loading: boolean

Property: loading {Boolean} Indicates if tiles are being loaded.

map: Map

This variable is set when the layer is added to the map, via the accessor function setMap()

maxExtent: Bounds

The maximum extent for the layer. Defaults to null.

maxResolution: number

Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps. Specify a different value in the layer options if you are not using the default <OpenLayers.Map.tileSize> and displaying the whole world.

maxScale: number
metadata: {}

This object can be used to store additional information on a layer object.

minExtent: Bounds

The minimum extent for the layer. Defaults to null.

minResolution: number
minScale: number
name: string
numLoadingTiles: number

APIProperty: numLoadingTiles {Integer} How many tiles are still loading?

numZoomLevels: number
opacity: number

The layer's opacity. Float number between 0.0 and 1.0.

options: { tileOptions?: TileOptions }

An optional object whose properties will be set on the layer. Any of the layer properties can be set as a property of the options object and sent to the constructor when the layer is created.

params: {}

Property: params {Object} Hashtable of key/value parameters

projection: Projection

Specifies the projection of the layer. Can be set in the layer options. If not specified in the layer options, it is set to the default projection specified in the map, when the layer is added to the map. Projection along with default maxExtent and resolutions are set automatically with commercial baselayers in EPSG:3857, such as Google, Bing and OpenStreetMap, and do not need to be specified. Otherwise, if specifying projection, also set maxExtent, maxResolution or resolutions as appropriate. When using vector layers with strategies, layer projection should be set to the projection of the source data if that is different from the map default.

ratio: number

APIProperty: ratio {Float} Used only when in single-tile mode, this specifies the ratio of the size of the single tile to the size of the map. Default value is 1.5.

removeBackBufferDelay: number

APIProperty: removeBackBufferDelay {Number} Delay for removing the backbuffer when all tiles have finished loading. Can be set to 0 when no css opacity transitions for the olTileImage class are used. Default is 0 for layers, 2500 for tiled layers. See for more information on tile animation.

reproject: boolean

APIProperty: reproject Deprecated. See http://docs.openlayers.org/library/spherical_mercator.html for information on the replacement for this functionality. {Boolean} Whether layer should reproject itself based on base layer locations. This allows reprojection onto commercial layers. Default is false: Most layers can't reproject, but layers which can create non-square geographic pixels can, like WMS.

RESOLUTION_PROPERTIES: string[]

The properties that are used for calculating resolutions information.

resolutions: any[]

A list of map resolutions (map units per pixel) in descending order. If this is not set in the layer constructor, it will be set based on other resolution related properties (maxExtent, maxResolution, maxScale, etc.).

rowSign: number

Property: rowSign {Number} 1 for grids starting at the top, -1 for grids starting at the bottom. This is used for several grid index and offset calculations.

scales: any[]

An array of map scales in descending order. The values in the array correspond to the map scale denominator. Note that these values only make sense if the display (monitor) resolution of the client is correctly guessed by whomever is configuring the application. In addition, the units property must also be set. Use instead wherever possible.

serverResolutions: number[]

APIProperty: serverResolutions {Array} A list of all resolutions available on the server. Only set this property if the map resolutions differ from the server. This property serves two purposes. (a) can include resolutions that the server supports and that you don't want to provide with this layer; you can also look at , which is an alternative to for that specific purpose. (b) The map can work with resolutions that aren't supported by the server, i.e. that aren't in . When the map is displayed in such a resolution data for the closest server-supported resolution is loaded and the layer div is stretched as necessary.

singleTile: boolean

APIProperty: singleTile {Boolean} Moves the layer into single-tile mode, meaning that one tile will be loaded. The tile's size will be determined by the 'ratio' property. When the tile is dragged such that it does not cover the entire viewport, it is reloaded.

sphericalMercator: boolean

APIProperty: sphericalMercator Whether the tile extents should be set to the defaults for spherical mercator. Useful for things like OpenStreetMap. Default is false, except for the OSM subclass.

tileClass: Tile

APIProperty: tileClass {<OpenLayers.Tile>} The tile class to use for this layer. Defaults is OpenLayers.Tile.Image.

tileOptions: {}

APIProperty: tileOptions {Object} optional configuration options for <OpenLayers.Tile> instances created by this Layer, if supported by the tile class.

tileOrigin: LonLat

APIProperty: tileOrigin {<OpenLayers.LonLat>} Optional origin for aligning the grid of tiles. If provided, requests for tiles at all resolutions will be aligned with this location (no tiles shall overlap this location). If not provided, the grid of tiles will be aligned with the layer's . Default is null.

tileOriginCorner: string

Property: tileOriginCorner {String} If the property is not provided, the tile origin will be derived from the layer's . The corner of the used is determined by this property. Acceptable values are "tl" (top left), "tr" (top right), "bl" (bottom left), and "br" (bottom right). Default is "bl".

tileSize: Size

APIProperty: tileSize {<OpenLayers.Size>}

transitionEffect: string

APIProperty: transitionEffect {String} The transition effect to use when the map is zoomed. Two posible values:

"resize" - Existing tiles are resized on zoom to provide a visual effect of the zoom having taken place immediately. As the new tiles become available, they are drawn on top of the resized tiles (this is the default setting). "map-resize" - Existing tiles are resized on zoom and placed below the base layer. New tiles for the base layer will cover existing tiles. This setting is recommended when having an overlay duplicated during the transition is undesirable (e.g. street labels or big transparent fills). null - No transition effect.

Using "resize" on non-opaque layers can cause undesired visual effects. Set transitionEffect to null in this case.

transitionendEvents: string[]

Property: transitionendEvents {Array} Event names for transitionend

units: string

The layer map units. Defaults to null. Possible values are 'degrees' (or 'dd'), 'm', 'ft', 'km', 'mi', 'inches'. Normally taken from the projection. Only required if both map and layers do not define a projection, or if they define a projection which does not define units.

url: string[]

Property: url {Array(String) or String} This is either an array of url strings or a single url string.

visibility: boolean

The layer should be displayed in the map. Default is true.

wrapDateLine: boolean

Wraps the world at the international dateline, so the map can be panned infinitely in longitudinal direction. Only use this on the base layer, and only if the layer's maxExtent equals the world bounds.

zoomOffset: number

APIProperty: zoomOffset {Number} If your cache has more zoom levels than you want to provide access to with this layer, supply a zoomOffset. This zoom offset is added to the current map zoom level to determine the level for a requested tile. For example, if you supply a zoomOffset of 3, when the map is at the zoom 0, tiles will be requested from level 3 of your cache. Default is 0 (assumes cache level and map zoom are equivalent). Using is an alternative to setting if you only want to expose a subset of the server resolutions.

Methods

  • APIMethod: addOptions

    Parameters: newOptions - {Object} reinitialize - {Boolean} If set to true, and if resolution options of the current baseLayer were changed, the map will be recentered to make sure that it is displayed with a valid resolution, and a changebaselayer event will be triggered.

    Parameters

    • newOptions: {}
    • reinitialize: boolean

    Returns void

  • APIMethod: addTile Create a tile, initialize it, and add it to the layer div.

    Parameters bounds - {<OpenLayers.Bounds>} position - {<OpenLayers.Pixel>}

    Returns: {<OpenLayers.Tile>} The added OpenLayers.Tile

    Parameters

    • bounds: Bounds
    • position: number

    Returns Tile

  • Method: adjustBounds This function will take a bounds, and if wrapDateLine option is set on the layer, it will return a bounds which is wrapped around the world. We do not wrap for bounds which cross the maxExtent.left/right, only bounds which are entirely to the left or entirely to the right.

    Parameters: bounds - {<OpenLayers.Bounds>}

    Parameters

    Returns Bounds

  • APIMethod: calculateInRange

    Returns: {Boolean} The layer is displayable at the current map's current resolution. Note that if 'alwaysInRange' is true for the layer, this function will always return true.

    Returns boolean

  • Method: calculateResolutions Calculate resolutions based on the provided properties.

    Parameters: props - {Object} Properties

    Returns: {Array({Number})} Array of resolutions.

    Parameters

    • props: {}

    Returns number[]

  • APIMethod: clone Create a clone of this layer

    Parameters: obj - {Object} Is this ever used?

    Returns: {<OpenLayers.Layer.XYZ>} An exact clone of this OpenLayers.Layer.XYZ

    Parameters

    • Optionalobj: any

    Returns XYZ

  • APIMethod: destroy Deconstruct the layer and clear the grid.

    Returns void

  • APIMethod: display Hide or show the Layer. This is designed to be used internally, and is not generally the way to enable or disable the layer. For that, use the setVisibility function instead..

    Parameters: display - {Boolean}

    Parameters

    • display: boolean

    Returns void

  • APIMethod: getExtent

    Returns: {<OpenLayers.Bounds>} A Bounds object which represents the lon/lat bounds of the current viewPort.

    Returns Bounds

  • Method: getFullRequestString Combine url with layer's params and these newParams.

    does checking on the serverPath variable, allowing for cases when it is supplied with trailing ? or &, as well as cases where not.

    return in formatted string like this: "server?key1=value1&key2=value2&key3=value3"

    WARNING: The altUrl parameter is deprecated and will be removed in 3.0.

    Parameters: newParams - {Object} altUrl - {String} Use this as the url instead of the layer's url

    Returns: {String}

    Parameters

    • newParams: {}
    • altUrl: string

    Returns string

  • APIMethod: getImageSize

    Parameters: bounds - {<OpenLayers.Bounds>} optional tile bounds, can be used by subclasses that have to deal with different tile sizes at the layer extent edges (e.g. Zoomify)

    Returns: {<OpenLayers.Size>} The size that the image should be, taking into account gutters.

    Returns Size

  • APIMethod: getLonLatFromViewPortPx

    Parameters: viewPortPx - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object with a 'x' and 'y' properties.

    Returns: {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in view port <OpenLayers.Pixel>, translated into lon/lat by the layer.

    Parameters

    Returns LonLat

  • APIMethod: getResolution

    Returns: {Float} The currently selected resolution of the map, taken from the resolutions array, indexed by current zoom level.

    Returns number

  • APIMethod: getResolutionForZoom

    Parameters: zoom - {Float}

    Returns: {Float} A suitable resolution for the specified zoom.

    Parameters

    • zoom: number

    Returns number

  • APIMethod: getTileBounds Returns The tile bounds for a layer given a pixel location.

    Parameters: viewPortPx - {<OpenLayers.Pixel>} The location in the viewport.

    Returns: {<OpenLayers.Bounds>} Bounds of the tile at the given pixel location.

    Parameters

    Returns Bounds

  • APIMethod: getTilesBounds Return the bounds of the tile grid.

    Returns: {<OpenLayers.Bounds>} A Bounds object representing the bounds of all the currently loaded tiles (including those partially or not at all seen onscreen).

    Returns Bounds

  • APIMethod: getViewPortPxFromLonLat Returns a pixel location given a map location. This method will return fractional pixel values.

    Parameters: lonlat - {<OpenLayers.LonLat>|Object} An OpenLayers.LonLat or an object with a 'lon' and 'lat' properties.

    Returns: {<OpenLayers.Pixel>} An <OpenLayers.Pixel> which is the passed-in lonlat translated into view port pixels.

    Parameters

    • lonlat: LonLat
    • resolution: number

    Returns Pixel

  • APIMethod: getVisibility

    Returns: {Boolean} The layer should be displayed (if in range).

    Returns boolean

  • Method: getZIndex

    Returns: {Integer} the z-index of this layer

    Returns number

  • APIMethod: getZoomForExtent

    Parameters: extent - {<OpenLayers.Bounds>} closest - {Boolean} Find the zoom level that most closely fits the specified bounds. Note that this may result in a zoom that does not exactly contain the entire extent. Default is false.

    Returns: {Integer} The index of the zoomLevel (entry in the resolutions array) for the passed-in extent. We do this by calculating the ideal resolution for the given extent (based on the map size) and then calling getZoomForResolution(), passing along the 'closest' parameter.

    Parameters

    • extent: Bounds
    • Optionalclosest: boolean

    Returns number

  • APIMethod: getZoomForResolution

    Parameters: resolution - {Float} closest - {Boolean} Find the zoom level that corresponds to the absolute closest resolution, which may result in a zoom whose corresponding resolution is actually smaller than we would have desired (if this is being called from a getZoomForExtent() call, then this means that the returned zoom index might not actually contain the entire extent specified... but it'll be close). Default is false.

    Returns: {Integer} The index of the zoomLevel (entry in the resolutions array) that corresponds to the best fit resolution given the passed in value and the 'closest' specification.

    Parameters

    • resolution: number
    • Optionalclosest: boolean

    Returns number

  • Constructor: OpenLayers.Layer.XYZ

    Parameters: name - {String} url - {String} options - {Object} Hashtable of extra options to tag onto the layer

    Parameters

    • name: string
    • url: null | string
    • Optionaloptions: any

    Returns this

  • Method: initResolutions This method's responsibility is to set up the 'resolutions' array for the layer -- this array is what the layer will use to interface between the zoom levels of the map and the resolution display of the layer.

    The user has several options that determine how the array is set up.

    For a detailed explanation, see the following wiki from the openlayers.org homepage: http://trac.openlayers.org/wiki/SettingZoomLevels

    Returns void

  • APIMethod: mergeNewParams

    Parameters: newParams - {Object}

    Returns: redrawn: {Boolean} whether the layer was actually redrawn.

    Parameters

    • newParams: {}

    Returns boolean

  • Method: moveByPx Move the layer based on pixel vector.

    Parameters: dx - {Number} dy - {Number}

    Parameters

    • dx: number
    • dy: number

    Returns void

  • Method: moveTo This function is called whenever the map is moved. All the moving of actual 'tiles' is done by the map, but moveTo's role is to accept a bounds and make sure the data that that bounds requires is pre-loaded.

    Parameters: bounds - {<OpenLayers.Bounds>} zoomChanged - {Boolean} dragging - {Boolean}

    Parameters

    • bounds: Bounds
    • zoomChanged: boolean
    • dragging: boolean

    Returns void

  • Method: onMapResize For singleTile layers, this will set a new tile size according to the dimensions of the map pane.

    Returns void

  • APIMethod: redraw Redraws the layer. Returns true if the layer was redrawn, false if not.

    Parameters: force - {Boolean} Force redraw by adding random parameter.

    Returns: {Boolean} The layer was redrawn.

    Parameters

    • Optionalforce: boolean

    Returns boolean

  • Method: removeBackBuffer Remove back buffer from DOM.

    Returns void

  • Method: removeMap Called when the layer is removed from the map.

    Parameters: map - {<OpenLayers.Map>} The map.

    Parameters

    Returns void

  • APIMethod: setIsBaseLayer

    Parameters: isBaseLayer - {Boolean}

    Parameters

    • isBaseLayer: boolean

    Returns void

  • Method: setMap

    Parameters: map - {<OpenLayers.Map>} The map.

    Parameters

    Returns void

  • Parameters

    • minZoom: number

    Returns void

  • APIMethod: setName Sets the new layer name for this layer. Can trigger a changelayer event on the map.

    Parameters: newName - {String} The new name.

    Parameters

    • newName: string

    Returns void

  • APIMethod: setOpacity Sets the opacity for the entire layer (all images)

    Parameters: opacity - {Float}

    Parameters

    • opacity: number

    Returns void

  • APIMethod: setTileSize Check if we are in singleTile mode and if so, set the size as a ratio of the map size (as specified by the layer's 'ratio' property).

    Parameters: size - {<OpenLayers.Size>}

    Parameters

    Returns void

  • APIMethod: setUrl

    Parameters: newUrl - {String}

    Parameters

    • newUrl: string

    Returns void

  • APIMethod: setVisibility Set the visibility flag for the layer and hide/show & redraw accordingly. Fire event unless otherwise specified

    Note that visibility is no longer simply whether or not the layer's style.display is set to "block". Now we store a 'visibility' state property on the layer class, this allows us to remember whether or not we desire for a layer to be visible. In the case where the map's resolution is out of the layer's range, this desire may be subverted.

    Parameters: visibility - {Boolean} Whether or not to display the layer (if in range)

    Parameters

    • visibility: boolean

    Returns void

  • Method: setZIndex

    Parameters: zIndex - {Integer}

    Parameters

    • zIndex: number

    Returns void