From 6f0a209a388846ad9f3d9688013e2ac67d6aefd2 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 18 Jun 2022 20:42:11 +0200 Subject: [PATCH] fix deprecation warning --- htdocs/lib/AprsMarker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/AprsMarker.js b/htdocs/lib/AprsMarker.js index f6720c1..2715e24 100644 --- a/htdocs/lib/AprsMarker.js +++ b/htdocs/lib/AprsMarker.js @@ -70,7 +70,7 @@ AprsMarker.prototype.onAdd = function() { div.appendChild(overlay); var self = this; - google.maps.event.addDomListener(div, "click", function(event) { + div.addEventListener("click", function(event) { event.stopPropagation(); google.maps.event.trigger(self, "click", event); });