MapShape.Disposing

Syntax

Disposing: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The Disposing event occurs after map layer area deletion.

Example

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:

MapShape