chage size calculation without steps
This commit is contained in:
parent
9f7f31f03a
commit
d2154d9120
38
js/main.js
38
js/main.js
@ -276,11 +276,11 @@ function displayStatsFromGeoJson(resultAsGeojson) {
|
|||||||
})
|
})
|
||||||
let bar_powers = `<div class="bars-container">
|
let bar_powers = `<div class="bars-container">
|
||||||
<div class="bar color-unknown" style="width: ${calculerPourcentage(count_output_unknown, count, true)}%">${count_output_unknown}</div>
|
<div class="bar color-unknown" style="width: ${calculerPourcentage(count_output_unknown, count, true)}%">${count_output_unknown}</div>
|
||||||
<div class="bar color-power-lesser-than-50" style="width: ${calculerPourcentage(count_station_outputoutput_between_1_and_50, count, true)}%">${count_station_outputoutput_between_1_and_50}</div>
|
<div class="bar color-power-lesser-than-50" style="width: ${calculerPourcentage(count_station_outputoutput_between_1_and_50, count, true)}%">${count_station_outputoutput_between_1_and_50 ? count_station_outputoutput_between_1_and_50 : ''}</div>
|
||||||
<div class="bar color-power-lesser-than-100" style="width: ${calculerPourcentage(output_more_than_50, count, true)}%">${output_more_than_50}</div>
|
<div class="bar color-power-lesser-than-100" style="width: ${calculerPourcentage(output_more_than_50, count, true)}%">${output_more_than_50 ? output_more_than_50 : ''}</div>
|
||||||
<div class="bar color-power-lesser-than-200" style="width: ${calculerPourcentage(output_more_than_100, count, true)}%">${output_more_than_100}</div>
|
<div class="bar color-power-lesser-than-200" style="width: ${calculerPourcentage(output_more_than_100, count, true)}%">${output_more_than_100 ? output_more_than_100 : ''}</div>
|
||||||
<div class="bar color-power-lesser-than-300" style="width: ${calculerPourcentage(output_more_than_200, count, true)}%">${output_more_than_200}</div>
|
<div class="bar color-power-lesser-than-300" style="width: ${calculerPourcentage(output_more_than_200, count, true)}%">${output_more_than_200? output_more_than_200 : '' | ''}</div>
|
||||||
<div class="bar color-power-lesser-than-max" style="width: ${calculerPourcentage(output_more_than_300, count, true)}%">${output_more_than_300}</div>
|
<div class="bar color-power-lesser-than-max" style="width: ${calculerPourcentage(output_more_than_300, count, true)}%">${output_more_than_300 ? output_more_than_300 : ''}</div>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -423,19 +423,21 @@ function displayPointsFromApi(points = geojsondata) {
|
|||||||
ratio_circle = 0.25
|
ratio_circle = 0.25
|
||||||
}
|
}
|
||||||
console.log('ratio_circle', ratio_circle)
|
console.log('ratio_circle', ratio_circle)
|
||||||
if (outPowerGuessed >= 300) {
|
radius = outPowerGuessed * ratio_circle
|
||||||
radius = 70 * ratio_circle
|
|
||||||
} else if (outPowerGuessed >= 200) {
|
// if (outPowerGuessed >= 300) {
|
||||||
radius = 60 * ratio_circle
|
// radius = 70 * ratio_circle
|
||||||
} else if (outPowerGuessed >= 100) {
|
// } else if (outPowerGuessed >= 200) {
|
||||||
radius = 50 * ratio_circle
|
// radius = 60 * ratio_circle
|
||||||
} else if (outPowerGuessed >= 50) {
|
// } else if (outPowerGuessed >= 100) {
|
||||||
radius = 40 * ratio_circle
|
// radius = 50 * ratio_circle
|
||||||
} else if (outPowerGuessed >= 20) {
|
// } else if (outPowerGuessed >= 50) {
|
||||||
radius = 30 * ratio_circle
|
// radius = 40 * ratio_circle
|
||||||
} else if (outPowerGuessed >= 7) {
|
// } else if (outPowerGuessed >= 20) {
|
||||||
radius = 20 * ratio_circle
|
// radius = 30 * ratio_circle
|
||||||
}
|
// } else if (outPowerGuessed >= 7) {
|
||||||
|
// radius = 20 * ratio_circle
|
||||||
|
// }
|
||||||
|
|
||||||
let circle = L.circle(layer._latlng, {
|
let circle = L.circle(layer._latlng, {
|
||||||
color: color,
|
color: color,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user