POI hinzufügen Formular Elemente anordnen

This commit is contained in:
ISA
2024-05-17 10:38:55 +02:00
parent f2ecbc522b
commit 91197bf86c
12 changed files with 141 additions and 66 deletions

View File

@@ -36,8 +36,8 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
const zoomTrigger = useRecoilValue(zoomTriggerState);
const offlineTileLayer = "/mapTiles/{z}/{x}/{y}.png";
//const onlineTileLayer = "/mapTiles/{z}/{x}/{y}.png";
const onlineTileLayer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
//const onlineTileLayer = "mapTiles/{z}/{x}/{y}.png";
//const onlineTileLayer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
const onlineTileLayer = "http://10.10.0.13:3000/mapTiles/{z}/{x}/{y}.png"; //Talas_v5 Server
// Create map layers
const TALAS = new L.layerGroup();
const ECI = new L.layerGroup();
@@ -845,7 +845,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
const poiTypName = poiTypMap.get(location.idPoiTyp) || "Unbekannt ";
const marker = L.marker([latitude, longitude], {
icon: L.icon({
iconUrl: "/img/icons/green-marker-icon.png",
iconUrl: "/img/icons/pois/poi-marker-icon-20.png",
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
@@ -933,8 +933,8 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
addContextMenuToMarker(marker);
});
map.addLayer(TALAS);
console.log("map", map);
console.log("oms", oms);
//console.log("map", map);
//console.log("oms", oms);
//disable map contextmenu
map.options.contextmenu = false;
map.options.contextmenuItems = [];