Skip to content

Commit 9988f1a

Browse files
authored
Merge pull request #357 from gtt-project/main
chore: sync next with main (bring main-only fixes/features into next)
2 parents b59ebdc + ef4a148 commit 9988f1a

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
author_url 'https://github.com/georepublic'
77
url 'https://github.com/gtt-project/redmine_gtt'
88
description 'Adds location-based task management and maps'
9-
version '6.0.1'
9+
version '6.0.3'
1010

1111
requires_redmine :version_or_higher => '5.1.0'
1212

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redmine_gtt",
3-
"version": "6.0.1",
3+
"version": "6.0.2",
44
"description": "Plugin that adds spatial capabilities to Redmine",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

src/components/gtt-client/init/layers.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@ function createLayers(this: any): void {
7676
if (config.source) {
7777
const SourceClass = olSource[config.source as keyof typeof olSource] as typeof olSource.Source;
7878
const sourceOptions = config.source_options;
79+
if (config.format) {
80+
const FormatClass = olFormat[config.format as keyof typeof olFormat] as any;
81+
const formatOptions = config.format_options;
82+
layerOptions['format'] = new FormatClass(formatOptions);
83+
(sourceOptions as { format?: any })['format'] = layerOptions['format'];
84+
}
7985
layerOptions['source'] = new SourceClass(sourceOptions);
8086
}
8187

82-
if (config.format) {
83-
const FormatClass = olFormat[config.format as keyof typeof olFormat] as any;
84-
const formatOptions = config.format_options;
85-
layerOptions['format'] = new FormatClass(formatOptions);
86-
}
8788

8889
const layer = new LayerClass(layerOptions);
8990

src/styles/icons/custom/custom-icons-def.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as FontFaceObserver from 'fontfaceobserver';
22
import FontSymbol from 'ol-ext/style/FontSymbol';
3+
import './custom-icons.woff2';
34

45
const iconMappings: { [key: string]: any } = {
56
'lobsta': '\uf101',

src/styles/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ import '@mdi/font/css/materialdesignicons.css';
1919

2020
// Import Material Design icons definition JS file to define icon names and variations
2121
import './icons/material-design/material-design-def';
22+
23+
// Import plugin SVG icons to make them available in assets/images
24+
import './images/icons.svg';

0 commit comments

Comments
 (0)