Skip to content

Commit

Permalink
v4.12.7 bump
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAndrewHurst committed Jan 14, 2025
1 parent f573772 commit 07a4ff5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**v4.12.6**
**v4.12.7**

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![Codi Unit Tests](https://github.com/GEOLYTIX/xyz/actions/workflows/unit_tests.yml/badge.svg)
Expand Down
42 changes: 20 additions & 22 deletions lib/mapp.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,49 @@ The `mapp.mjs` module is used as entry point for the esbuild process to bundle t
@module mapp
*/

import utils from './utils/_utils.mjs'
import utils from './utils/_utils.mjs';

import hooks from './hooks.mjs'
import hooks from './hooks.mjs';

import dictionary from './dictionaries/_dictionary.mjs'
import dictionary from './dictionaries/_dictionary.mjs';

import dictionaries from './dictionaries/_dictionaries.mjs'
import dictionaries from './dictionaries/_dictionaries.mjs';

import layer from './layer/_layer.mjs'
import layer from './layer/_layer.mjs';

import location from './location/_location.mjs'
import location from './location/_location.mjs';

import Mapview from './mapview/_mapview.mjs'
import Mapview from './mapview/_mapview.mjs';

import plugins from './plugins/_plugins.mjs'
import plugins from './plugins/_plugins.mjs';

hooks.parse();

const _ol = {
current: '10.3.1'
}
current: '10.3.1',
};

if (window.ol === undefined) {

console.warn(`Openlayers has not been loaded.`)

console.warn(`Openlayers has not been loaded.`);
} else {

const olVersion = parseFloat(ol?.util.VERSION)
const olVersion = parseFloat(ol?.util.VERSION);
const olCurrent = parseFloat(_ol.current);

console.log(`OpenLayers version ${olVersion}`)
console.log(`OpenLayers version ${olVersion}`);

if (olVersion < olCurrent) {

console.warn(`Update the current OpenLayers version:${ol?.util.VERSION} to ${_ol.current}.`)
console.warn(
`Update the current OpenLayers version:${ol?.util.VERSION} to ${_ol.current}.`,
);
}
}

self.mapp = {
ol: _ol,

version: '4.12.6',
version: '4.12.7',

hash: 'e19adad70af7047ccebda80df4825e8e408c0d91',
hash: 'f573772a1d230559bd4f041d9a0d57dcea44de1f',

host: document.head?.dataset?.dir || '',

Expand All @@ -79,5 +77,5 @@ self.mapp = {

utils,

plugins
}
plugins,
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz",
"version": "v4.12.6",
"version": "v4.12.7",
"repository": {
"type": "git",
"url": "https://github.com/geolytix/xyz"
Expand Down Expand Up @@ -43,4 +43,4 @@
"nodemon": "^3.1.7",
"uhtml": "^3.1.0"
}
}
}

0 comments on commit 07a4ff5

Please sign in to comment.