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