Raised when all tiles in a map layer are loaded.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
EventDispatcher layerLoad |
Event DataThe event handler method receives the following arguments:
sender
A MapLayer instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An EventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
ExampleThe following code handles the layerLoad event of a MapView and checks if the tile layer is completely loaded:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; // create a new instance of the mapView // create a map layer view.layerLoad.addEventListener(handleLayerLoad); function handleLayerLoad( sender, args ) |
See Also