POI hinzufügen Formular Elemente anordnen
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user