log10(0) is not defined - also: make region borders less intrusive for depending on number of events. As it was, it was hard to see the underlying geography.
This commit is contained in:
parent
56c9d2e455
commit
fb3e8bf701
|
@ -163,7 +163,7 @@ export const getRegionLayers = (
|
||||||
"fill-opacity": [
|
"fill-opacity": [
|
||||||
"interpolate",
|
"interpolate",
|
||||||
["linear"],
|
["linear"],
|
||||||
["log10", ["get", "overtaking_event_count"]],
|
["log10", ["max",["get", "overtaking_event_count"],1]],
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
Math.log10(maxValue),
|
Math.log10(maxValue),
|
||||||
|
@ -180,7 +180,15 @@ export const getRegionLayers = (
|
||||||
maxzoom: 10,
|
maxzoom: 10,
|
||||||
// filter: [">", "overtaking_event_count", 0],
|
// filter: [">", "overtaking_event_count", 0],
|
||||||
paint: {
|
paint: {
|
||||||
"line-width": 1,
|
"line-width": [
|
||||||
|
"interpolate",
|
||||||
|
["linear"],
|
||||||
|
["log10", ["max",["get", "overtaking_event_count"],1]],
|
||||||
|
0,
|
||||||
|
0.2,
|
||||||
|
Math.log10(maxValue),
|
||||||
|
1.5,
|
||||||
|
],
|
||||||
"line-color": baseColor,
|
"line-color": baseColor,
|
||||||
},
|
},
|
||||||
layout: {
|
layout: {
|
||||||
|
|
Loading…
Reference in a new issue