Last active
June 7, 2022 18:50
-
-
Save nicdford/f6d004bd385dd91c07f18d58f7ccb645 to your computer and use it in GitHub Desktop.
Quick snippet for adding turf features as mapbox layers on a map for testing
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
map.addSource('debugging', { | |
type: 'geojson', | |
data: intersectFeature, | |
}) | |
map.addLayer({ | |
id: 'debugging', | |
type: 'fill', | |
source: 'debugging', | |
layout: {}, | |
paint: { | |
'fill-color': 'red', | |
'fill-opacity': 0.4, | |
'fill-outline-color': 'green', | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment