This question arises because on my project I will have a backend that consists of gpx tracks. Then, my frontend queries it (based on time, location filters, etc.) and I will either get the corresponding tracks and show them on a leaflet map or some specific points to also show on that map.
Then, I need to be able to style those tracks and be able to interact with them. Is it easier to achieve this through PolyLines or GeoJSON layers?