Last active
July 24, 2018 19:25
-
-
Save allthesignals/b43bac084c6278165722b92480b0dcf8 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
import Component from '@ember/component'; | |
import { computed } from '@ember/object'; | |
export default Component.extend({ | |
initOptions: { | |
pitch: 30, | |
}, | |
bikeLaneStyles: { | |
type: 'line', | |
paint: { | |
'line-color': '#007cbf', | |
'line-width': 10, | |
}, | |
}, | |
bikeLaneSourceOptions: computed('data', function() { | |
const { data } = this; | |
return { | |
type: 'geojson', | |
data, | |
}; | |
}), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment