Browse Source

Add formatting

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
20fce656dc
  1. 9
      edit-mode/function/activityLocation.js

9
edit-mode/function/activityLocation.js

@ -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

Loading…
Cancel
Save