refactor: Quellcode aufräumen
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// utils/setupPOIs.js
|
||||
import { findClosestPoints } from "./geometryUtils";
|
||||
import handlePoiSelect from "./handlePoiSelect";
|
||||
import { updateLocationInDatabase } from "../services/database/updateLocationInDatabase";
|
||||
import { updateLocationInDatabaseService } from "../services/database/updateLocationInDatabaseService";
|
||||
import { handleEditPoi, insertNewPOI, removePOI } from "./poiUtils";
|
||||
import { parsePoint } from "./geometryUtils";
|
||||
import circleIcon from "../components/gisPolylines/icons/CircleIcon";
|
||||
@@ -120,7 +120,7 @@ export const setupPOIs = async (
|
||||
const newLat = e.target.getLatLng().lat;
|
||||
const newLng = e.target.getLatLng().lng;
|
||||
const markerId = e.target.options.id;
|
||||
updateLocationInDatabase(markerId, newLat, newLng).then(() => {});
|
||||
updateLocationInDatabaseService(markerId, newLat, newLng).then(() => {});
|
||||
} else {
|
||||
console.error("Drag operation not allowed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user