follow the official api

This commit is contained in:
Jakob Ketterl 2023-08-26 00:05:37 +02:00
parent 6c84fdbd3f
commit 2481681bb1
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ AprsMarker.prototype.onAdd = function() {
panes.overlayImage.appendChild(div);
};
AprsMarker.prototype.remove = function() {
AprsMarker.prototype.onRemove = function() {
if (this.div) {
this.div.parentNode.removeChild(this.div);
this.div = null;

View file

@ -58,7 +58,7 @@ PlaneMarker.prototype.onAdd = function() {
panes.overlayImage.appendChild(svg);
};
PlaneMarker.prototype.remove = function() {
PlaneMarker.prototype.onRemove = function() {
if (this.svg) {
this.svg.parentNode.removeChild(this.svg);
this.svg = null;