humangeo / leaflet-dvf

Leaflet Data Visualization Framework
MIT License
689 stars 153 forks source link

Change color line #118

Open andipahlevy opened 6 years ago

andipahlevy commented 6 years ago

How can i change color of the line in airport map.. so i can view the different between inbound and outbound

sfairgrieve commented 6 years ago

For a particular airport that a user selects? You should be able to change the displayOptions for the line layer and assign different colors based on the from or to properties. I've pushed a new example to the 1.0dev branch: https://github.com/humangeo/leaflet-dvf/blob/1.0dev/examples/html/airports3.html. Let me know if this helps.

andipahlevy commented 6 years ago

Thanks its work! :D

andipahlevy commented 6 years ago

sir, how to create a filter for inbound and outbound? so i can hide or display both