Skip to content

Instantly share code, notes, and snippets.

@garethpaul
Created January 21, 2020 05:04
Show Gist options
  • Save garethpaul/85f7ebc662a79f3bd4819ccc788a884f to your computer and use it in GitHub Desktop.
Save garethpaul/85f7ebc662a79f3bd4819ccc788a884f to your computer and use it in GitHub Desktop.
// Once the map loads we push the geoJson over the top.
map.on('load', function() {
// 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],
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment