Station öffnen zweimal sichtbar für Marker und polyline
This commit is contained in:
@@ -135,8 +135,8 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
|
||||
|
||||
const checkMouseOverMenu = () => {
|
||||
if (!isMouseOverMenuItem) {
|
||||
showContextMenuItemByIndex(map, 0);
|
||||
showContextMenuItemByIndex(map, 1);
|
||||
//showContextMenuItemByIndex(map, 0);
|
||||
//showContextMenuItemByIndex(map, 1);
|
||||
closeContextMenu(); // Kontextmenü schließen, wenn die Maus nicht mehr darüber ist
|
||||
}
|
||||
};
|
||||
@@ -300,8 +300,8 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
|
||||
|
||||
polyline.on("mouseover", (e) => {
|
||||
polyline.setStyle({ weight: 20 });
|
||||
hideContextMenuItemByIndex(map, 0);
|
||||
hideContextMenuItemByIndex(map, 1);
|
||||
//hideContextMenuItemByIndex(map, 0);
|
||||
//hideContextMenuItemByIndex(map, 1);
|
||||
});
|
||||
|
||||
polyline.on("mousedown", (e) => {
|
||||
|
||||
Reference in New Issue
Block a user