Current behavior:
Generates 50 console.warn'ings when launching a map with markers on it.
"google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener
The feature will continue to work and there is no plan to decommission it."
Expected behavior:
No console warnings
Screen capture or video record:
none
Related code, data or error log (please format your code or data):
// /plugins/cordova-plugin-googlemaps/src/browser/PluginMarker.js line 450
google.maps.event.addDomListener(container.parentNode.parentNode.parentNode, 'click', function() {
self.onMarkerClickEvent(event.INFO_CLICK, marker);
}, true);
// /plugins/cordova-plugin-googlemaps/src/browser/PluginStreetViewPanorama.js line 113
google.maps.event.addDomListener(container, 'click', function(evt) {
var pov = panorama.getPov();
var clickInfo = {
'orientation': {
'bearing': pov.heading,
'tilt': pov.pitch
},
'point': [evt.clientX, evt.clientY]
};
if (self.__pgmId in plugin.google.maps) {
plugin.google.maps[self.__pgmId]({
'evtName': event.PANORAMA_CLICK,
'callback': '_onPanoramaEvent',
'args': [clickInfo]
});
}
});
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior: Generates 50 console.warn'ings when launching a map with markers on it. "google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener The feature will continue to work and there is no plan to decommission it."
Expected behavior: No console warnings
Screen capture or video record: none
Related code, data or error log (please format your code or data):
possible solution: https://stackoverflow.com/a/71990198/5858974