serge-web / serge

Serious Gaming, Evolved - web interface
https://sites.google.com/deepbluec.com/serge/
Apache License 2.0
14 stars 4 forks source link

Mark transit routes with arrows #1890

Closed IanMayo closed 2 years ago

IanMayo commented 2 years ago

One day ( #1863 ) players will add lines to mark transit routes in orders. But - the direction isn't clear: image

This library can decorate lines with icons or arrows:

image

Note: here is an article on a react implementation, but @IanMayo couldn't get the code to work: https://stackoverflow.com/questions/57143284/how-to-use-leaflet-polylinedecorator-in-react-16-4-1

lebaphi commented 2 years ago
image

I wonder how to active this drawing tool @IanMayo ?

IanMayo commented 2 years ago

There isn't a drawing tool in Serge at the moment. That will be one of your next tasks, as we integrate leaflet-geoman

lebaphi commented 2 years ago

okay, so I think we should complete this task first 😄

IanMayo commented 2 years ago

Yes. The top screenshot was taken using the GeoMan demo page.

If you can integrate the correct lib, and get a line on the map with arrows, I can integrate it with the relevant code. I Think that will be in plan mapping orders (or something like that).

lebaphi commented 2 years ago

I think it done by #1862