Skip to content

Instantly share code, notes, and snippets.

@easherma
Last active March 28, 2017 17:13
Show Gist options
  • Save easherma/c4c185c1e1e85647f43464f38e1bba6f to your computer and use it in GitHub Desktop.
Save easherma/c4c185c1e1e85647f43464f38e1bba6f to your computer and use it in GitHub Desktop.
color bins for HRIMS
function style_map(feature) {
if (feature.properties['re_over_te'] >= 0.006980 && feature.properties['re_over_te'] <= 0.068916 ) {
return {
pane: 'states_data',
opacity: 1,
color: '#000000',
dashArray: '',
lineCap: 'butt',
lineJoin: 'miter',
weight: 1.0,
fillOpacity: 1,
fillColor: '#f7fcf5',
}
}
if (feature.properties['re_over_te'] >= 0.068916 && feature.properties['re_over_te'] <= 0.117091 ) {
return {
pane: 'states_data',
opacity: 1,
color: '#000000',
dashArray: '',
lineCap: 'butt',
lineJoin: 'miter',
weight: 1.0,
fillOpacity: 1,
fillColor: '#cbebc4',
}
}
if (feature.properties['re_over_te'] >= 0.117091 && feature.properties['re_over_te'] <= 0.195427 ) {
return {
pane: 'states_data',
opacity: 1,
color: '#000000',
dashArray: '',
lineCap: 'butt',
lineJoin: 'miter',
weight: 1.0,
fillOpacity: 1,
fillColor: '#7bc87c',
}
}
if (feature.properties['re_over_te'] >= 0.195427 && feature.properties['re_over_te'] <= 0.383144 ) {
return {
pane: 'states_data',
opacity: 1,
color: '#000000',
dashArray: '',
lineCap: 'butt',
lineJoin: 'miter',
weight: 1.0,
fillOpacity: 1,
fillColor: '#2b934b',
}
}
if (feature.properties['re_over_te'] >= 0.383144 && feature.properties['re_over_te'] <= 0.492536 ) {
return {
pane: 'states_data',
opacity: 1,
color: '#000000',
dashArray: '',
lineCap: 'butt',
lineJoin: 'miter',
weight: 1.0,
fillOpacity: 1,
fillColor: '#00441b',
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment