Move global L comment to top of file for ESLint no-undef rule
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* global L */
|
||||
|
||||
export function initEventMap() {
|
||||
const mapEl = document.getElementById('event-map')
|
||||
if (!mapEl) return
|
||||
@@ -31,7 +33,6 @@ function geocodeAndRender(address, mapEl) {
|
||||
const lat = parseFloat(data[0].lat)
|
||||
const lon = parseFloat(data[0].lon)
|
||||
|
||||
/* global L */
|
||||
const map = L.map(mapEl).setView([lat, lon], 16)
|
||||
|
||||
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
|
||||
|
||||
Reference in New Issue
Block a user