plusRoundIcon in eine separate Datei auslagern und dann in MapComponent importieren, um eine bessere Struktur zu gewährleisten

This commit is contained in:
ISA
2024-07-08 06:51:30 +02:00
parent f7cb225aab
commit 045ad26565
2 changed files with 9 additions and 9 deletions

View File

@@ -38,16 +38,8 @@ import { mapIdState, userIdState } from "../store/atoms/urlParameterState";
import { set } from "lodash";
import { poiLayerVisibleState } from "../store/atoms/poiLayerVisible";
import { data } from "autoprefixer";
import plusRoundIcon from "./PlusRoundIcon.js";
//import { createRoot } from "react-dom/client";
const plusRoundIcon = L.icon({
//iconUrl: "/img/plus_round.png", // Update with your actual path
iconUrl: "/img/plus_round.png", // Update with your actual path
iconSize: [22, 22],
iconAnchor: [25, 55],
className: "absolute top-0 left-0 z-10", // Adjust with Tailwind CSS classes
});
//---------------------------------------------------------------------
//-------------------- MapComponent -----------------------------------
const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {

View File

@@ -0,0 +1,8 @@
const plusRoundIcon = L.icon({
//iconUrl: "/img/plus_round.png", // Update with your actual path
iconUrl: "/img/plus_round.png", // Update with your actual path
iconSize: [22, 22],
iconAnchor: [25, 55],
className: "absolute top-0 left-0 z-10", // Adjust with Tailwind CSS classes
});
export default plusRoundIcon;