Raised when map view layers are loaded.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
EventDispatcher viewLoad |
Event DataThe event handler method receives the following arguments:
sender
A MapView 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 all layers are completely loaded:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; // create a new instance of the mapView // create a map layer view.viewLoad.addEventListener(handleLayerLoad); function handleViewLoad( sender, args ) |
See Also