@@ -34,6 +34,9 @@ TREM.variable.events.on('MapLoad', (map) => {
34
34
'icon-allow-overlap' : true ,
35
35
'icon-ignore-placement' : true ,
36
36
} ,
37
+ paint : {
38
+ 'icon-opacity' : [ 'get' , 'opacity' ] ,
39
+ } ,
37
40
} ) ;
38
41
} ) ;
39
42
@@ -57,7 +60,7 @@ function refresh_cross(show) {
57
60
}
58
61
const sWaveSource = TREM . variable . map . getSource ( `${ eew . id } -s-wave` ) ;
59
62
const pWaveSource = TREM . variable . map . getSource ( `${ eew . id } -p-wave` ) ;
60
- if ( sWaveSource && pWaveSource ) {
63
+ if ( eew . status == 3 || ( sWaveSource && pWaveSource ) ) {
61
64
eew_list . push ( eew ) ;
62
65
}
63
66
}
@@ -66,7 +69,7 @@ function refresh_cross(show) {
66
69
const sWaveSource = TREM . variable . map . getSource ( `${ eew . id } -s-wave` ) ;
67
70
const pWaveSource = TREM . variable . map . getSource ( `${ eew . id } -p-wave` ) ;
68
71
69
- if ( sWaveSource && pWaveSource ) {
72
+ if ( eew . status == 3 || ( sWaveSource && pWaveSource ) ) {
70
73
const existingIndex = eew_list . findIndex ( ( item ) => item . id === eew . id ) ;
71
74
let no = existingIndex ;
72
75
if ( eew_list . length > 1 ) {
@@ -75,7 +78,7 @@ function refresh_cross(show) {
75
78
76
79
if ( no < 5 ) {
77
80
if ( show || eew . status == 3 ) {
78
- const opacity = eew . status == 3 ? 0.5 : 1 ;
81
+ const opacity = eew . status == 3 ? 0.6 : 1 ;
79
82
markerFeatures . push ( {
80
83
type : 'Feature' ,
81
84
geometry : {
0 commit comments