/** * Suppress known Firefox deprecation warnings from Leaflet when panning/dragging the map. * See: https://github.com/Leaflet/Leaflet/issues/7078, https://github.com/Leaflet/Leaflet/issues/9386 * No ill effect; Leaflet has not fixed this upstream. */ export default defineNuxtPlugin(() => { if (import.meta.dev && typeof console !== 'undefined' && console.warn) { const originalWarn = console.warn console.warn = function (...args: unknown[]) { const msg = typeof args[0] === 'string' ? args[0] : String(args[0]) if ( msg.includes('mozPressure') || msg.includes('mozInputSource') || msg.includes('PointerEvent.pressure') || msg.includes('PointerEvent.pointerType') ) { return } originalWarn.apply(console, args) } } })