fix: zIndexOffset-Berechnung angepasst, um Marker-Priorität zu verbessern
- zIndexOffset in `createAndSetDevices` von `100 * (5 - priority)` auf `100 * (6 - priority)` geändert. - Dadurch erhalten Marker mit höherer Priorität einen größeren zIndex-Wert. - Problem gelöst, bei dem POI-Marker von anderen Layern oder Markern überlagert wurden. - Logik angepasst, um die Sichtbarkeit und Priorisierung der Marker zu stabilisieren.
This commit is contained in:
@@ -47,7 +47,7 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste
|
||||
const iconPath = statis ? `img/icons/${statis.Na}-marker-icon-${station.Icon}.png` : `img/icons/marker-icon-${station.Icon}.png`;
|
||||
|
||||
const priority = determinePriority(iconPath, priorityConfig);
|
||||
const zIndexOffset = 100 * (5 - priority); // Adjusted for simplicity and positive values
|
||||
const zIndexOffset = 100 * (6 - priority); // Adjusted for simplicity and positive values
|
||||
|
||||
const marker = L.marker([station.X, station.Y], {
|
||||
icon: L.icon({
|
||||
|
||||
Reference in New Issue
Block a user