Created
January 21, 2020 05:04
-
-
Save garethpaul/85f7ebc662a79f3bd4819ccc788a884f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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