forked from GEOLYTIX/xyz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GEOLYTIX#1703 from GEOLYTIX/patch
Patch v4.12.3
- Loading branch information
Showing
41 changed files
with
2,142 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ public/js/lib/* | |
!tests/** | ||
!package.json | ||
!jsdoc*.json | ||
!codi.json | ||
!codi.json | ||
!nodemon.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// esbuild.config.mjs | ||
import * as esbuild from 'esbuild' | ||
|
||
const isDev = process.env.NODE_ENV !== 'DEVELOPMENT'; | ||
|
||
const buildOptions = { | ||
entryPoints: ['./lib/mapp.mjs', './lib/ui.mjs'], | ||
bundle: true, | ||
minify: isDev, | ||
sourcemap: true, | ||
sourceRoot: '/lib', | ||
format: 'iife', | ||
outdir: './public/js/lib', | ||
metafile: true, | ||
logLevel: 'info' | ||
}; | ||
|
||
try { | ||
await esbuild.build(buildOptions); | ||
} catch (err) { | ||
console.error('Build failed:', err); | ||
process.exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,21 +34,7 @@ import plugins from './plugins/_plugins.mjs' | |
hooks.parse(); | ||
|
||
const _ol = { | ||
current: '10.2.1', | ||
load: async () => await new Promise(resolve => { | ||
|
||
const script = document.createElement('script') | ||
|
||
script.type = 'application/javascript' | ||
|
||
script.src = 'https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js' | ||
|
||
script.onload = resolve | ||
|
||
document.head.append(script) | ||
|
||
console.warn('Openlayers library loaded from script tag.') | ||
}) | ||
current: '10.2.1' | ||
} | ||
|
||
if (window.ol === undefined) { | ||
|
@@ -58,10 +44,11 @@ if (window.ol === undefined) { | |
} else { | ||
|
||
const olVersion = parseFloat(ol?.util.VERSION) | ||
const olCurrent = parseFloat(_ol.current); | ||
|
||
console.log(`OpenLayers version ${olVersion}`) | ||
|
||
if (olVersion < _ol.current) { | ||
if (olVersion < olCurrent) { | ||
|
||
console.warn(`Update the current OpenLayers version:${ol?.util.VERSION} to ${_ol.current}.`) | ||
} | ||
|
@@ -70,9 +57,9 @@ if (window.ol === undefined) { | |
self.mapp = { | ||
ol: _ol, | ||
|
||
version: '4.12.2', | ||
version: '4.12.3', | ||
|
||
hash: '52558fa8bbd8752e4f27036c7ca95a7f3426a205', | ||
hash: '2e1f3b08ffcd0706a030c06a61dd0d15c673dfbc', | ||
|
||
host: document.head?.dataset?.dir || '', | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.