refactor: Move readGisLines to /api/talas_v5_DB/gisLines/ folder for better organization
This commit is contained in:
@@ -2113,7 +2113,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
const [linePositions, setLinePositions] = useState([]);
|
||||
|
||||
useEffect(() => {
|
||||
const endpoint = "/api/readGisLines";
|
||||
const endpoint = "/api/talas_v5_DB/gisLines/readGisLines";
|
||||
fetch(endpoint)
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
@@ -2204,7 +2204,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
const circleIcon = L.divIcon({
|
||||
className: "custom-div-icon",
|
||||
html: "<div style='background-color:#00FFFF;border-radius:50%;width:10px;height:10px;'></div>",
|
||||
iconSize: [10, 10],
|
||||
iconSize: [25, 25],
|
||||
iconAnchor: [5, 5],
|
||||
});
|
||||
//const[polylines, setPolylines] = useState([]);
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function handler(req, res) {
|
||||
IdModul: 1,
|
||||
Na: "system",
|
||||
Le: 4,
|
||||
Co: "#000FFF",
|
||||
Co: "#00FF00",
|
||||
Me: "Eingang DE04 kommend",
|
||||
Feld: 3,
|
||||
Icon: 0,
|
||||
@@ -17,7 +17,7 @@ export default function handler(req, res) {
|
||||
IdModul: 3,
|
||||
Na: "system",
|
||||
Le: 4,
|
||||
Co: "#FF0000",
|
||||
Co: "#FF00FF",
|
||||
Me: "Eingang DE05 kommend",
|
||||
Feld: 3,
|
||||
Icon: 0,
|
||||
|
||||
Reference in New Issue
Block a user