Skip to content

Commit

Permalink
Some style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cblakkan committed Apr 27, 2024
1 parent a5781cc commit 7c99ccb
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@
center: [-73.97,40.68],
zoom: 14
});
let OPACITY = 0.8;
let LINE_WIDTH = 8;
let OPACITY = 0.75;
// NY MTA
let PROTECTED_BIKELANE = '#00933C';
let STANDARD_BIKELANE = '#0039A6';
let SHARED_BIKELANE = '#FCCC0A';
//
// let PROTECTED_BIKELANE = '#38E54D';
// let STANDARD_BIKELANE = '#2192FF';
// let SHARED_BIKELANE = '#FDFF00';


map.on('load', () => {
map.addSource('bikejson', {
Expand All @@ -60,8 +70,8 @@
'type': 'line',
'source': 'bikejson',
'paint': {
'line-color': "green",
'line-width': 5,
'line-color': PROTECTED_BIKELANE,
'line-width': LINE_WIDTH ,
'line-opacity': OPACITY
},
'filter': [
Expand All @@ -77,8 +87,8 @@
'type': 'line',
'source': 'bikejson',
'paint': {
'line-color': "green",
'line-width': 5,
'line-color': PROTECTED_BIKELANE,
'line-width': LINE_WIDTH ,
'line-opacity': OPACITY
},
'filter': [
Expand All @@ -94,8 +104,8 @@
'type': 'line',
'source': 'bikejson',
'paint': {
'line-color': "blue",
'line-width': 5,
'line-color': STANDARD_BIKELANE,
'line-width': LINE_WIDTH ,
'line-opacity': OPACITY
},
'filter': [
Expand All @@ -110,8 +120,8 @@
'type': 'line',
'source': 'bikejson',
'paint': {
'line-color': "orange",
'line-width': 5,
'line-color': SHARED_BIKELANE,
'line-width': LINE_WIDTH ,
'line-opacity': OPACITY
},
'filter': [
Expand Down

0 comments on commit 7c99ccb

Please sign in to comment.