polyline.setStyle({ weight: 20 });
}); für bereiter Linie
This commit is contained in:
@@ -299,17 +299,17 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
|
|||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
polyline.on("mouseover", (e) => {
|
polyline.on("mouseover", (e) => {
|
||||||
polyline.setStyle({ weight: 15 });
|
polyline.setStyle({ weight: 20 });
|
||||||
hideContextMenuItemByIndex(map, 0);
|
hideContextMenuItemByIndex(map, 0);
|
||||||
hideContextMenuItemByIndex(map, 1);
|
hideContextMenuItemByIndex(map, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
polyline.on("mousedown", (e) => {
|
polyline.on("mousedown", (e) => {
|
||||||
polyline.setStyle({ weight: 15 });
|
polyline.setStyle({ weight: 20 });
|
||||||
});
|
});
|
||||||
|
|
||||||
polyline.on("mouseup", (e) => {
|
polyline.on("mouseup", (e) => {
|
||||||
polyline.setStyle({ weight: 15 });
|
polyline.setStyle({ weight: 20 });
|
||||||
});
|
});
|
||||||
|
|
||||||
polyline.on("mouseout", (e) => {
|
polyline.on("mouseout", (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user