Skip to content

Instantly share code, notes, and snippets.

@allthesignals
Last active July 24, 2018 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allthesignals/5357f81d0e85a856fde5bd43797caf75 to your computer and use it in GitHub Desktop.
Save allthesignals/5357f81d0e85a856fde5bd43797caf75 to your computer and use it in GitHub Desktop.
export default Component.extend({
// ...
bikeLaneStyles: {
type: 'line',
paint: {
'line-color': {
property: 'bikeroute',
type: 'categorical',
stops: [
['ACCESS PATH', '#e41a1c'],
['EXISTING BUFFERED BIKE LANE', '#f781bf'],
['EXISTING CYCLE TRACK', '#4daf4a'],
['EXISTING SHARED-LANE', '#984ea3'],
['EXISTING BIKE LANE', '#ff7f00'],
['EXISTING OFF-STREET TRAIL', '#ffff33'],
['EXISTING NEIGHBORHOOD GREENWAY', '#a65628'],
['RECOMMENDED BIKE ROUTE', '#377eb8'],
],
default: '#66c2a5',
},
'line-width': 2,
},
}
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment