Raised when all tiles in a map layer are loaded.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
EventDispatcher layerLoad |
The 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 EmptyEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
The 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 ) |