File tree Expand file tree Collapse file tree
components/gtt-client/init Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11import * as FontFaceObserver from 'fontfaceobserver' ;
22import FontSymbol from 'ol-ext/style/FontSymbol' ;
3+ import './custom-icons.woff2' ;
34
45const iconMappings : { [ key : string ] : any } = {
56 'lobsta' : '\uf101' ,
Original file line number Diff line number Diff 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
2121import './icons/material-design/material-design-def' ;
22+
23+ // Import plugin SVG icons to make them available in assets/images
24+ import './images/icons.svg' ;
You can’t perform that action at this time.
0 commit comments