createAndSetMarkers in createAndSetDevices umbenennt
This commit is contained in:
@@ -19,7 +19,7 @@ const useTalasMarkers = (map, oms, layers, priorityConfig) => {
|
||||
const GisStationsStaticDistrict = useRecoilValue(gisStationsStaticDistrictState);
|
||||
|
||||
// Funktion zum Erstellen und Setzen der Marker
|
||||
const createAndSetMarkers = (systemId, setMarkers, GisSystemStatic, priorityConfig) => {
|
||||
const createAndSetDevices = (systemId, setMarkers, GisSystemStatic, priorityConfig) => {
|
||||
const markers = GisSystemStatic.filter((station) => station.System === systemId).map((station) => {
|
||||
const marker = L.marker([station.Latitude, station.Longitude], {
|
||||
title: station.Name,
|
||||
@@ -96,7 +96,7 @@ const useTalasMarkers = (map, oms, layers, priorityConfig) => {
|
||||
}
|
||||
}, [zoomTrigger, map]);
|
||||
|
||||
return [talasMarkers, setTalasMarkers, createAndSetMarkers];
|
||||
return [talasMarkers, setTalasMarkers, createAndSetDevices];
|
||||
};
|
||||
|
||||
export default useTalasMarkers;
|
||||
|
||||
Reference in New Issue
Block a user