prepare router, forcegraph, map for destroy/reload
This commit is contained in:
parent
625e7ba880
commit
473734f2bb
3 changed files with 40 additions and 8 deletions
|
|
@ -182,6 +182,10 @@ define(["leaflet", "moment", "leaflet.label"], function (L, moment) {
|
|||
resetView()
|
||||
}
|
||||
|
||||
self.destroy = function () {
|
||||
map.remove()
|
||||
}
|
||||
|
||||
return self
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue