|
|
@ -53,8 +53,7 @@ function updateCurrentGeoJson() { |
|
|
|
features: shapes |
|
|
|
features: shapes |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
function openActivityMap(id) |
|
|
|
function openActivityMap(id) { |
|
|
|
{ |
|
|
|
|
|
|
|
currentIdAct = id; |
|
|
|
currentIdAct = id; |
|
|
|
map.invalidateSize(); |
|
|
|
map.invalidateSize(); |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
@ -245,8 +244,7 @@ $(document).ready(function () { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function submitLocation() |
|
|
|
function submitLocation() { |
|
|
|
{ |
|
|
|
|
|
|
|
let payload |
|
|
|
let payload |
|
|
|
|
|
|
|
|
|
|
|
if (currentGeoJson && currentGeoJson != "") { |
|
|
|
if (currentGeoJson && currentGeoJson != "") { |
|
|
@ -290,8 +288,7 @@ $(document).ready(function () { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function submitCircle(radius) |
|
|
|
function submitCircle(radius) { |
|
|
|
{ |
|
|
|
|
|
|
|
let circle = L.circle([circLat, circLong], { radius: radius }); |
|
|
|
let circle = L.circle([circLat, circLong], { radius: radius }); |
|
|
|
let geojsoncircle = circle.toGeoJSON(); |
|
|
|
let geojsoncircle = circle.toGeoJSON(); |
|
|
|
geojsoncircle.properties.radius = radius |
|
|
|
geojsoncircle.properties.radius = radius |
|
|
|