Skip to content

Instantly share code, notes, and snippets.

@garethpaul
Created January 21, 2020 05:14
Show Gist options
  • Save garethpaul/8a19fd0caf56bff5f0247488c6aed96e to your computer and use it in GitHub Desktop.
Save garethpaul/8a19fd0caf56bff5f0247488c6aed96e to your computer and use it in GitHub Desktop.
// Power Lines
var url = 'geojson/power_lines.geojson';
map.addLayer({
'id': 'power_lines',
'type': 'line',
'source': {
'type': 'geojson',
'data': url
},
'paint': {
'line-color': '#FF5023',
'line-width': 2,
'line-dasharray': [1, 1],
}
});
enableLineAnimation('power_lines');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment