Add clear map function
This commit is contained in:
@@ -295,6 +295,7 @@
|
|||||||
activity_type: ''
|
activity_type: ''
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
if (adventure.type == 'visited') {
|
||||||
let res = await fetch(
|
let res = await fetch(
|
||||||
`/api/countries/check_point_in_region/?lat=${e.detail.lngLat.lat}&lon=${e.detail.lngLat.lng}`
|
`/api/countries/check_point_in_region/?lat=${e.detail.lngLat.lat}&lon=${e.detail.lngLat.lng}`
|
||||||
);
|
);
|
||||||
@@ -310,6 +311,10 @@
|
|||||||
region_name = null;
|
region_name = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
region_id = null;
|
||||||
|
region_name = null;
|
||||||
|
}
|
||||||
|
|
||||||
console.log(markers);
|
console.log(markers);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user