ContourLayer Class

Bing
 

The ContourLayer class takes an array of ContourLine and organizes them and creates non-overlapping polygon to represent each contour area.

ContourLayer(contourLines: ContourLine[], options?: ContourLayerOptions)

NameReturn TypeDescription
clear()Clears all data on the contour layer.
getContourLines()ContourLine[]Gets the contour lines of this layer.
getContourPolygons()Polygon[]Gets the polygons that were generated from the contour lines in this layer.
getOptions()ContourLayerOptionsRetrieves the options of this contour layer.
getVisible()booleanGets a boolean that indicates if the layer is visible or not.
getZIndex()numberGets the zIndex of the layer.
setContourLines(contourLines: ContourLine[])Sets the contour lines used to calculate the polygon areas of this layer.
setOptions(options: ContourLayerOptions)Sets the options of the contour layer.
setVisible(show: boolean)Sets the visibility of the layer.
setZIndex(idx: number)Sets the zIndex of the layer. See also: zIndexing in Bing Maps V8
NameArgumentsDescription
clickLayerMouseEventArgsOccurs when the mouse is used to click the map or when a touch end event occurs on a contour line in the layer.
dblclickLayerMouseEventArgsOccurs when the mouse is used to double click the map or when a touch end event occurs on a contour line in the layer.
mousedownLayerMouseEventArgsOccurs when the left mouse button is pressed or a touch start event occurs on a contour line in the layer.
mouseoverLayerMouseEventArgsOccurs when the mouse cursor moves over top of the area covered by a contour line in the layer.
mouseoutLayerMouseEventArgsOccurs when the mouse cursor moves out of the area covered by a contour line in the layer.
mouseupLayerMouseEventArgsOccurs when the left mouse button is lifted up or when the touch end event occurs on a contour line in the layer.
rightclickLayerMouseEventArgsOccurs when the right mouse button is used to click the map or when a long touch press occurs on a contour line in the layer.
Show: