Disposing: function(sender, args);
sender. Event source.
args. Event information.
The Disposing event occurs after map layer area deletion.
To execute the example HTML page must contain the object of the PP.MapShape type (see page with description of the MapShape.Visual) property named mapShape. Delete map layer area and its tooltip:
// Process the event of map layer area removing mapShape.Disposing.add(function(sender, args) { console.log("The %s map layer area is deleted", sender.getId()); }); // Delete map layer area mapShape.dispose();
After executing the example map layer area and tooltip are deleted and corresponding message is displayed to the browser console:
The RU-KYA map layer area is deleted
See also: