Add: add icons to contextmenu elements
This commit is contained in:
@@ -289,16 +289,28 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
|||||||
zoomControl: false,
|
zoomControl: false,
|
||||||
contextmenu: true,
|
contextmenu: true,
|
||||||
contextmenuItems: [
|
contextmenuItems: [
|
||||||
{ text: "Station hinzufügen", callback: addStationCallback },
|
{
|
||||||
|
text: "Station hinzufügen",
|
||||||
|
icon: "img/add_station.png",
|
||||||
|
callback: addStationCallback,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: "Koordinaten",
|
text: "Koordinaten",
|
||||||
icon: "img/screen_same.png",
|
icon: "img/not_listed_location.png",
|
||||||
callback: showCoordinates,
|
callback: showCoordinates,
|
||||||
},
|
},
|
||||||
"-", // Divider
|
"-", // Divider
|
||||||
{ text: "Reinzoomen", callback: zoomIn },
|
{ text: "Reinzoomen", icon: "img/zoom_in.png", callback: zoomIn },
|
||||||
{ text: "Rauszoomen", callback: zoomOut },
|
{
|
||||||
{ text: "Hier zentrieren", callback: centerHere },
|
text: "Rauszoomen",
|
||||||
|
icon: "img/zoom_out.png",
|
||||||
|
callback: zoomOut,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Hier zentrieren",
|
||||||
|
icon: "img/center_focus.png",
|
||||||
|
callback: centerHere,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
BIN
public/img/add_station.png
Normal file
BIN
public/img/add_station.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user