File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,28 @@ var App = (function ($, publ) {
297
297
298
298
case 5 :
299
299
case 6 :
300
- color = "#1E90FF" ;
300
+ // color = "#1E90FF";
301
+ color = "#228B22" ;
302
+ break ;
303
+ }
304
+ }
305
+
306
+ return color ;
307
+ } ;
308
+
309
+ publ . getFontColor = function ( feature ) {
310
+ // console.log(feature.get("tracker_id"));
311
+ color = "#666666" ;
312
+
313
+ if ( feature . get ( 'status_id' ) ) {
314
+ switch ( feature . get ( 'status_id' ) ) {
315
+ case 1 :
316
+ color = "#FFFFFF" ;
317
+ break ;
318
+
319
+ case 5 :
320
+ case 6 :
321
+ color = "#FFFFFF" ;
301
322
break ;
302
323
}
303
324
}
@@ -367,10 +388,10 @@ var App = (function ($, publ) {
367
388
gradient : false ,
368
389
glyph : publ . getSymbol ( feature ) ,
369
390
fontSize : 0.6 ,
370
- radius : 22 ,
391
+ radius : 18 ,
371
392
rotation : 0 ,
372
393
rotateWithView : false ,
373
- color : "#333333" ,
394
+ color : publ . getFontColor ( feature ) ,
374
395
fill : new ol . style . Fill ( {
375
396
color : publ . getColor ( feature )
376
397
} ) ,
Original file line number Diff line number Diff line change 5
5
author 'Georepublic'
6
6
author_url 'https://hub.georepublic.net/gtt/redmine_gtt'
7
7
description 'Adds location-based task management and maps'
8
- version '1.2.0 '
8
+ version '1.2.1 '
9
9
10
10
requires_redmine :version_or_higher => '3.4.0'
11
11
You can’t perform that action at this time.
0 commit comments