up remote link

This commit is contained in:
Tykayn 2024-12-12 09:50:54 +01:00 committed by tykayn
parent a073e0887d
commit ff00ee6e2c
3 changed files with 35 additions and 39 deletions

View file

@ -89,7 +89,7 @@ function createJOSMEditLink(feature) {
var right = coordinates[0] + margin_josm_bbox;
var bottom = coordinates[1] - margin_josm_bbox;
var top = coordinates[1] + margin_josm_bbox;
var josmUrl = `http://127.0.0.1:8111/load_and_zoom?left=${left}&top=${top}&right=${right}&bottom=${bottom}&select=${nodeId}`;
var josmUrl = `http://127.0.0.1:8111/load_and_zoom?changeset_hashtags=IRVE&layer_name=irve-depuis-OSM&left=${left}&top=${top}&right=${right}&bottom=${bottom}&select=${nodeId}`;
return josmUrl;
}
@ -298,7 +298,7 @@ function bindEventsOnJosmRemote () {
})
})
}
const ratio_circle = 0.9
function displayPointsFromApi (points) {
geojsondata = osmtogeojson(points)
@ -362,17 +362,17 @@ function displayPointsFromApi (points) {
let radius = 20
if (outPowerGuessed > 300) {
radius = 200
radius = 70 * ratio_circle
} else if (outPowerGuessed > 200) {
radius = 250
radius = 60 * ratio_circle
} else if (outPowerGuessed > 100) {
radius = 150
radius = 50 * ratio_circle
} else if (outPowerGuessed > 50) {
radius = 100
radius = 40 * ratio_circle
} else if (outPowerGuessed > 20) {
radius = 50
radius = 30 * ratio_circle
} else if (outPowerGuessed > 7) {
radius = 20
radius = 20 * ratio_circle
}
let circle = L.circle(layer._latlng, {
@ -490,7 +490,7 @@ function onMapMoveEnd () {
}else{
infos += "(zoomez au niveau 11 ou plus pour charger les stations en vous déplaçant)"
}
$("#infos_carte").html();
$("#infos_carte").html(infos);
}
map.on('moveend', onMapMoveEnd);