waibu-maps 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
1
  async function wmapsBase () {
2
+ const controls = ['csrc', 'navigation-control', 'crlr', 'scale-control', 'attribution-control',
3
+ 'centerpos', 'fullscreen-control', 'geolocate-control', 'czbp', 'cmp']
4
+ if (this.app.sumbaCms) controls.push('newsticker')
5
+
2
6
  return class WmapsBase extends this.app.baseClass.MpaWidget {
3
7
  static scripts = [...super.scripts,
4
8
  'waibuMaps.asset:/js/lib/worker-timers.js',
@@ -12,8 +16,7 @@ async function wmapsBase () {
12
16
  'waibuMaps.asset:/css/wmaps.css'
13
17
  ]
14
18
 
15
- static controls = ['csrc', 'navigation-control', 'crlr', 'scale-control', 'attribution-control',
16
- 'centerpos', 'fullscreen-control', 'geolocate-control', 'czbp', 'cmp', 'newsticker']
19
+ static controls = controls
17
20
 
18
21
  async getWmapsTemplate (html, type, defEmpty = '') {
19
22
  const { trim, isEmpty } = this.app.lib._
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-maps",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Maps for Waibu MPA",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-10-21
4
+
5
+ - [2.6.1] Bug fix for newsticker condition
6
+
3
7
  ## 2026-10-19
4
8
 
5
9
  - [2.6.0] Add `control-newsticker` widget