From b35dc990d0d073cd9f5998178502e376f379477a Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 2 Nov 2024 23:57:42 +0800 Subject: [PATCH] style: standardjs --- src/BasicOpenlayersRenderer.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/BasicOpenlayersRenderer.mjs b/src/BasicOpenlayersRenderer.mjs index 9cdd33b..f4b10c8 100644 --- a/src/BasicOpenlayersRenderer.mjs +++ b/src/BasicOpenlayersRenderer.mjs @@ -64,15 +64,11 @@ const Renderer = class extends defaultExport { const crsString = this.validateOption('crs', crs) ? crs : (() => { - console.warn( - `Invalid Coordinate System: ${crs}, set "EPSG:4326" instead`, - ) + console.warn(`Invalid Coordinate System: ${crs}, set "EPSG:4326" instead`) return crs })() const projection = await ol.proj.proj4.fromEPSGCode(crsString).catch(() => { - console.warn( - `Fail to retrieve Coordinate System ${crsString}, Use ${crs} instead`, - ) + console.warn(`Fail to retrieve Coordinate System ${crsString}, Use ${crs} instead`) }) ol.proj.setUserProjection(projection) return ol.proj.getUserProjection()