tabris-plugin-maps icon indicating copy to clipboard operation
tabris-plugin-maps copied to clipboard

Map not disposed when containing page is closed

Open cpetrov opened this issue 7 years ago • 0 comments

Example:

let navigation = new tabris.NavigationView({left: 0, top: 0, right: 0, bottom: 0}).appendTo(tabris.ui.contentView);

new tabris.Page({title: 'Page 1'}).appendTo(navigation);

setTimeout(() => {
  let page = new tabris.Page({title: 'Map'}).appendTo(navigation);

  new esmaps.Map({
    left: 0, right: 0, top: 0, bottom: 0
  }).appendTo(page);
}, 400);

When the map page is closed, ESMap.destroy does not get called.

However, ESMap.destroy gets called when the map gets disposed explicitly, i.e. when map.dispose() is called in JavaScript.

cpetrov avatar Mar 03 '17 12:03 cpetrov