Skip to content

Commit

Permalink
style: standardjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsieh Chin Fan committed Nov 2, 2024
1 parent 3c8e557 commit b35dc99
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/BasicOpenlayersRenderer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b35dc99

Please sign in to comment.