Skip to main content
deleted 9 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

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? Thanks.

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? Thanks.

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?

Source Link

What is the difference between using a PolyLine layer and a GeoJSON layer in leaflet?

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? Thanks.