File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,19 +121,23 @@ function resolveHeatmapStyle(
121121 return { baseOpacity : 1 , topOpacity : 1 , weight : 2.5 } ;
122122 }
123123
124+ if ( trackCount <= 1 ) {
125+ return { baseOpacity : 0.72 , topOpacity : 0.92 , weight : 5 } ;
126+ }
127+
124128 if ( trackCount <= 20 ) {
125- return { baseOpacity : 0.2 , topOpacity : 0.32 , weight : 5 } ;
129+ return { baseOpacity : 0.4 , topOpacity : 0.58 , weight : 5 } ;
126130 }
127131
128132 if ( trackCount <= 80 ) {
129- return { baseOpacity : 0.13 , topOpacity : 0.2 , weight : 4 } ;
133+ return { baseOpacity : 0.3 , topOpacity : 0.45 , weight : 4 } ;
130134 }
131135
132136 if ( trackCount <= 250 ) {
133- return { baseOpacity : 0.08 , topOpacity : 0.12 , weight : 3 } ;
137+ return { baseOpacity : 0.2 , topOpacity : 0.32 , weight : 3 } ;
134138 }
135139
136- return { baseOpacity : 0.045 , topOpacity : 0.085 , weight : 2.5 } ;
140+ return { baseOpacity : 0.12 , topOpacity : 0.22 , weight : 2.5 } ;
137141}
138142
139143function toHeatmapFeatureCollection ( tracks : TrackPoint [ ] [ ] ) : FeatureCollection < LineString > {
You can’t perform that action at this time.
0 commit comments