VETileSourceSpecification Constructor

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

Initializes a new instance of the VETileSourceSpecification class.

var x = new VETileSourceSpecification(tileSourceId, tileSource, numServers, bounds, minZoom, maxZoom, getTilePath, opacity, zindex);

Parameters

Parameter Description

tileSourceId

A unique identifier for the layer. Each layer on a map must have a unique Identifier. Required.

tileSource

The location of the tiles. Required. Information about the format of the tile source URL is found in the VETileSourceSpecification.TileSource Property topic.

numServers

The number of servers on which the tiles are hosted. Optional. The default value is 1.

bounds

An array of VELatLongRectangle Class objects that specifies the approximate coverage area of the layer. Optional.

minZoom

The minimum zoom level at which to display the custom tile source. Optional.

maxZoom

The maximum zoom level at which to display the custom tile source. Optional.

getTilePath

When viewing a map in 2D mode, the function that determines the correct file names for the tiles. Optional.

opacity

The opacity level of the tiles when displayed on the map. Optional.

zindex

The z-index value for the tiles. Optional.