isDestroying
function
Returns if the map is currently being destroyed.
map.isDestroying()
Observes if the promise returned by .destroy() has completed. This is
often used in template like:
<button ($click)="todo.destroy()"
{{#todo.isDestroying}}disabled{{/todo.isDestroying}}>
X
</button>
Returns
{Boolean}:
true if .destroy() has been called but is not resolved yet.