max size for suspicious stations
This commit is contained in:
parent
725c6eff2f
commit
7100bc1d52
@ -3,6 +3,7 @@ const config = {
|
||||
showHighPower : true,
|
||||
overrideQuery : true,
|
||||
initialZoom : 12,
|
||||
max_possible_station_output : 400,
|
||||
tileServers:{
|
||||
osm : 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||
cycle : 'https://{s}.tile.thunderforest.org/{z}/{x}/{y}.png',
|
||||
|
@ -8,6 +8,7 @@ import config from './config.js'
|
||||
import utils from './utils.js'
|
||||
import colorUtils from './color-utils.js'
|
||||
import { sendToJOSM, createJOSMEditLink } from './editor.js'
|
||||
import {isContentEditable} from "@testing-library/user-event/dist/utils";
|
||||
|
||||
let geojsondata;
|
||||
let lastLatLng;
|
||||
@ -402,6 +403,11 @@ function eachFeature(feature, layer) {
|
||||
if (!outPowerGuessed) {
|
||||
radius = radius * ratio_circle;
|
||||
} else {
|
||||
if(outPowerGuessed> config.max_possible_station_output ){
|
||||
console.error("valeur suspecte outPowerGuessed",outPowerGuessed, feature)
|
||||
outPowerGuessed = config.max_possible_station_output +1
|
||||
}
|
||||
|
||||
radius = outPowerGuessed * ratio_circle;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user