Skip to content

Instantly share code, notes, and snippets.

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 burritojustice/d9541f10887afe36e80bd0f0c64df7cb to your computer and use it in GitHub Desktop.
Save burritojustice/d9541f10887afe36e80bd0f0c64df7cb to your computer and use it in GitHub Desktop.
import:
- 'https://raw.githubusercontent.com/sensescape/xyz-pixel/master/scene.yaml'
- 'https://scene-export--xyz-space-invader.netlify.com/tangram_xyz_scene.yaml'
global:
featureLabelFont:
fill: darkred
size: 12px
stroke:
color: white
width: 4px
colorFunctions:
range:
label: value range
useProperty: true
usePalette: true
limitRange: true
defaultSort: values
color: "function (value, colorState) {\n\t var palette = colorState.featurePropPalette;\n\t var min = colorState.featurePropMinFilter;\n\t var max = colorState.featurePropMaxFilter;\n\t var delta = max - min;\n\t var number = colorState.colorHelpers.parseNumber(value);\n\n\t if (min == null || max == null || typeof number !== 'number' || isNaN(number)) {\n\t return 'rgba(128, 128, 128, 0.25)'; // handle null/undefined values\n\t }\n\n\t var ratio = (delta === 0 ? 1 : Math.max(Math.min(1 - ((max - number) / delta), 1), 0));\n\t return colorState.colorHelpers.getPaletteColor(palette, ratio, 0.75, colorState.featurePropPaletteFlip);\n\t }"
rank:
label: value rank
useProperty: true
usePalette: true
defaultSort: count
color: "function (value, colorState) {\n\t var palette = colorState.featurePropPalette;\n\t var counts = (colorState.featurePropValueCounts || []).filter(c => c[0] != null); // exclude nulls\n\t var rank = counts.findIndex(c => c[0] === value);\n\n\t if (rank === -1) {\n\t return 'rgba(128, 128, 128, 0.25)'; // handle null/undefined values\n\t }\n\n\t var ratio; // number from 0-1 that maps to the palette color index to use\n\n\t if (palette.assignment === 'categorical') {\n\t // optional categorical assigment\n\t if (rank < palette.values.length) {\n\t ratio = rank / (palette.values.length-1); // assign the top values to a single color\n\t }\n\t else {\n\t return 'rgba(255, 255, 255, 0.5)'; // bucket the remaining values as white\n\t }\n\t }\n\t else {\n\t // by default, interpolate through palette values\n\t ratio = (counts.length <= 1 ? 1 : Math.max(Math.min(1 - (rank / (counts.length - 1)), 1), 0));\n\t }\n\n\t // var ratio = (counts.length <= 1 ? 1 : Math.max(Math.min(1 - (rank / (counts.length-1)), 1), 0));\n\t return colorState.colorHelpers.getPaletteColor(palette, ratio, 0.75, colorState.featurePropPaletteFlip);\n\t }"
property:
label: property hash
useProperty: true
usePalette: false
color: "function colorHash (value) {\n\t if (typeof value !== 'string') {\n\t value = (value === undefined ? 'undefined' : JSON.stringify(value));\n\t }\n\n\t if (['null', 'undefined'].indexOf(value) > -1) {\n\t return 'rgba(128, 128, 128, 0.5)'; // handle null/undefined values\n\t }\n\n\t let hash = 0, i, chr;\n\t if (value === 0) { hash = 0; } for (i = 0; i < value.length; i++) {\n\t chr = value.charCodeAt(i);\n\t hash = ((hash << 5) - hash) + chr;\n\t hash |= 0; // Convert to 32bit integer\n\t }\n\t var color = 'hsla(' + hash + ', 100%, 50%, 0.75)';\n\t return color;\n\t}"
hash:
label: feature hash
useProperty: false
usePalette: false
color: "function colorHash (value) {\n\t if (typeof value !== 'string') {\n\t value = (value === undefined ? 'undefined' : JSON.stringify(value));\n\t }\n\n\t if (['null', 'undefined'].indexOf(value) > -1) {\n\t return 'rgba(128, 128, 128, 0.5)'; // handle null/undefined values\n\t }\n\n\t let hash = 0, i, chr;\n\t if (value === 0) { hash = 0; } for (i = 0; i < value.length; i++) {\n\t chr = value.charCodeAt(i);\n\t hash = ((hash << 5) - hash) + chr;\n\t hash |= 0; // Convert to 32bit integer\n\t }\n\t var color = 'hsla(' + hash + ', 100%, 50%, 0.75)';\n\t return color;\n\t}"
xray:
label: geometry type
useProperty: false
usePalette: false
xyz_access_token: AIrZgZMV7dDqarJ70CCd_h8
sdk_api_key: DpCrhQqsR2igQPEINRTfcw
colorMode: range
colorState:
featurePropStack:
- RNATURALINC2018
featurePropMinFilter: -12.05911687
featurePropMaxFilter: 27.777777778
featurePropPalette:
values:
- - 1
- 1
- 0.851
- - 0.992
- 0.996
- 0.831
- - 0.98
- 0.992
- 0.812
- - 0.973
- 0.988
- 0.792
- - 0.961
- 0.984
- 0.776
- - 0.953
- 0.98
- 0.757
- - 0.941
- 0.976
- 0.745
- - 0.929
- 0.973
- 0.729
- - 0.914
- 0.965
- 0.722
- - 0.898
- 0.961
- 0.714
- - 0.882
- 0.953
- 0.71
- - 0.867
- 0.949
- 0.706
- - 0.847
- 0.941
- 0.702
- - 0.827
- 0.933
- 0.702
- - 0.804
- 0.922
- 0.706
- - 0.776
- 0.914
- 0.706
- - 0.753
- 0.902
- 0.71
- - 0.722
- 0.89
- 0.714
- - 0.69
- 0.878
- 0.714
- - 0.659
- 0.867
- 0.718
- - 0.627
- 0.855
- 0.722
- - 0.592
- 0.843
- 0.725
- - 0.561
- 0.827
- 0.729
- - 0.525
- 0.816
- 0.733
- - 0.49
- 0.804
- 0.737
- - 0.459
- 0.788
- 0.741
- - 0.427
- 0.776
- 0.745
- - 0.396
- 0.765
- 0.749
- - 0.365
- 0.753
- 0.753
- - 0.337
- 0.741
- 0.753
- - 0.31
- 0.725
- 0.757
- - 0.282
- 0.714
- 0.761
- - 0.259
- 0.698
- 0.761
- - 0.235
- 0.682
- 0.761
- - 0.216
- 0.663
- 0.761
- - 0.196
- 0.647
- 0.761
- - 0.18
- 0.627
- 0.757
- - 0.165
- 0.608
- 0.753
- - 0.153
- 0.588
- 0.749
- - 0.145
- 0.569
- 0.741
- - 0.137
- 0.545
- 0.733
- - 0.129
- 0.522
- 0.725
- - 0.129
- 0.498
- 0.718
- - 0.125
- 0.475
- 0.706
- - 0.125
- 0.451
- 0.698
- - 0.129
- 0.427
- 0.686
- - 0.129
- 0.404
- 0.675
- - 0.133
- 0.38
- 0.663
- - 0.133
- 0.357
- 0.655
- - 0.133
- 0.333
- 0.643
- - 0.137
- 0.314
- 0.631
- - 0.137
- 0.294
- 0.62
- - 0.137
- 0.271
- 0.608
- - 0.133
- 0.255
- 0.592
- - 0.129
- 0.235
- 0.576
- - 0.125
- 0.22
- 0.557
- - 0.118
- 0.204
- 0.537
- - 0.11
- 0.188
- 0.514
- - 0.098
- 0.173
- 0.486
- - 0.086
- 0.161
- 0.463
- - 0.075
- 0.149
- 0.431
- - 0.059
- 0.137
- 0.404
- - 0.047
- 0.125
- 0.376
- - 0.031
- 0.114
- 0.345
featurePropPaletteFlip: false
featurePropValueCounts:
- - '0'
- 15
- - '-1.780587957'
- 2
- - '-3.607116744'
- 2
- - '0.6009527299'
- 2
- - '0.8023514458'
- 2
- - '0.9362200117'
- 2
- - '1.2329579135'
- 2
- - '1.5059639595'
- 2
- - '1.6150071433'
- 2
- - '3.9492008065'
- 2
- - '5.2385475942'
- 2
- - '5.4954490812'
- 2
- - null
- 1
- - '-0.014876304'
- 1
- - '-0.025576429'
- 1
- - '-0.031003906'
- 1
- - '-0.031778483'
- 1
- - '-0.034180439'
- 1
- - '-0.054296186'
- 1
- - '-0.083133582'
- 1
- - '-0.130168786'
- 1
- - '-0.139251523'
- 1
- - '-0.171614896'
- 1
- - '-0.177030316'
- 1
- - '-0.177904287'
- 1
- - '-0.210903722'
- 1
- - '-0.229186959'
- 1
- - '-0.233018758'
- 1
- - '-0.238098073'
- 1
- - '-0.256508914'
- 1
- - '-0.2866767'
- 1
- - '-0.298186035'
- 1
- - '-0.342310597'
- 1
- - '-0.343760743'
- 1
- - '-0.361729065'
- 1
- - '-0.37323878'
- 1
- - '-0.403337619'
- 1
- - '-0.421318728'
- 1
- - '-0.441744892'
- 1
- - '-0.481087257'
- 1
- - '-0.485260221'
- 1
- - '-0.487195883'
- 1
- - '-0.493732342'
- 1
- - '-0.510346107'
- 1
- - '-0.521484252'
- 1
- - '-0.553505535'
- 1
- - '-0.562746201'
- 1
- - '-0.568012176'
- 1
- - '-0.572901747'
- 1
- - '-0.572934571'
- 1
- - '-0.589225589'
- 1
- - '-0.616220068'
- 1
- - '-0.637970161'
- 1
- - '-0.641660506'
- 1
- - '-0.643915003'
- 1
- - '-0.65094749'
- 1
- - '-0.668896321'
- 1
- - '-0.685714286'
- 1
- - '-0.690567992'
- 1
- - '-0.709345629'
- 1
- - '-0.726494092'
- 1
- - '-0.727802038'
- 1
- - '-0.735023888'
- 1
- - '-0.795228628'
- 1
- - '-0.815804207'
- 1
- - '-0.828746951'
- 1
- - '-0.844095552'
- 1
- - '-0.853788687'
- 1
- - '-0.862626698'
- 1
- - '-0.887817871'
- 1
- - '-0.913311515'
- 1
- - '-0.926776251'
- 1
- - '-0.935188596'
- 1
- - '-0.946252839'
- 1
- - '-0.959769655'
- 1
- - '-0.991782375'
- 1
- - '-1.001808821'
- 1
- - '-1.027797244'
- 1
- - '-1.041124414'
- 1
- - '-1.049317943'
- 1
- - '-1.085371231'
- 1
- - '-1.096463904'
- 1
- - '-1.104362231'
- 1
- - '-1.105125017'
- 1
- - '-1.121940958'
- 1
- - '-1.126383244'
- 1
- - '-1.12667593'
- 1
- - '-1.130647469'
- 1
- - '-1.144601297'
- 1
- - '-1.159332628'
- 1
- - '-1.167746832'
- 1
- - '-1.191916638'
- 1
- - '-1.219512195'
- 1
- - '-1.221125471'
- 1
- - '-1.231596037'
- 1
- - '-1.264949402'
- 1
- - '-1.272736915'
- 1
- - '-1.282350198'
- 1
- - '-1.293480161'
- 1
- - '-1.305483029'
- 1
- - '-1.318391562'
- 1
- - '-1.326553173'
- 1
- - '-1.332482025'
- 1
- - '-1.338063231'
- 1
- - '-1.381909548'
- 1
- - '-1.404494382'
- 1
- - '-1.419950302'
- 1
- - '-1.464570321'
- 1
- - '-1.472031403'
- 1
- - '-1.490312966'
- 1
- - '-1.521683997'
- 1
- - '-1.531784529'
- 1
- - '-1.549786904'
- 1
- - '-1.553351655'
- 1
- - '-1.573762236'
- 1
- - '-1.645007403'
- 1
- - '-1.646226027'
- 1
- - '-1.662510391'
- 1
- - '-1.662707838'
- 1
- - '-1.706970128'
- 1
- - '-1.716615407'
- 1
- - '-1.745581497'
- 1
- - '-1.750376817'
- 1
- - '-1.766115807'
- 1
- - '-1.785714286'
- 1
- - '-1.809702791'
- 1
- - '-1.813784764'
- 1
- - '-1.820287936'
- 1
- - '-1.823357903'
- 1
- - '-1.829826167'
- 1
- - '-1.847111909'
- 1
- - '-1.84808723'
- 1
- - '-1.895540357'
- 1
- - '-1.91768031'
- 1
- - '-1.922916144'
- 1
- - '-1.929078014'
- 1
- - '-1.944737055'
- 1
- - '-1.991181909'
- 1
- - '-11.15075825'
- 1
- - '-12.05911687'
- 1
- - '-2.007528231'
- 1
- - '-2.030815417'
- 1
- - '-2.046501052'
- 1
- - '-2.061324401'
- 1
- - '-2.063033027'
- 1
- - '-2.148906586'
- 1
- - '-2.182611859'
- 1
- - '-2.211352861'
- 1
- - '-2.237906697'
- 1
- - '-2.25923629'
- 1
- - '-2.269718177'
- 1
- - '-2.292701567'
- 1
- - '-2.31280717'
- 1
- - '-2.34741784'
- 1
- - '-2.354070485'
- 1
- - '-2.385211688'
- 1
- - '-2.435206123'
- 1
- - '-2.453931972'
- 1
- - '-2.493420141'
- 1
- - '-2.496878901'
- 1
- - '-2.518186905'
- 1
- - '-2.539419302'
- 1
- - '-2.548466369'
- 1
- - '-2.562459962'
- 1
- - '-2.602049114'
- 1
- - '-2.607737512'
- 1
- - '-2.713531619'
- 1
- - '-2.745367193'
- 1
- - '-2.777274648'
- 1
- - '-2.808685319'
- 1
- - '-2.829187787'
- 1
- - '-2.909796314'
- 1
- - '-2.962962963'
- 1
- - '-2.984517814'
- 1
- - '-2.992356481'
- 1
- - '-2.997002997'
- 1
- - '-2.99850075'
- 1
- - '-2.998909487'
- 1
- - '-3.056663181'
- 1
- - '-3.058356753'
- 1
- - '-3.168137588'
- 1
- - '-3.229278794'
- 1
- - '-3.241390058'
- 1
- - '-3.248071458'
- 1
- - '-3.260742984'
- 1
- - '-3.270645953'
- 1
- - '-3.296867975'
- 1
- - '-3.306999816'
- 1
- - '-3.323363244'
- 1
- - '-3.345880385'
- 1
- - '-3.358992302'
- 1
- - '-3.361818975'
- 1
- - '-3.378119002'
- 1
- - '-3.380519755'
- 1
- - '-3.386216843'
- 1
- - '-3.409043376'
- 1
- - '-3.421532847'
- 1
- - '-3.426201425'
- 1
- - '-3.441322169'
- 1
- - '-3.449465333'
- 1
- - '-3.476611884'
- 1
- - '-3.495630462'
- 1
- - '-3.58735792'
- 1
- - '-3.597990591'
- 1
- - '-3.643673828'
- 1
- - '-3.680605255'
- 1
- - '-3.72297265'
- 1
- - '-3.724394786'
- 1
- - '-3.786900766'
- 1
- - '-3.790955862'
- 1
- - '-3.800098961'
- 1
- - '-3.82848392'
- 1
- - '-3.848973607'
- 1
- - '-3.910415926'
- 1
- - '-3.942041338'
- 1
- - '-4.014049172'
- 1
- - '-4.068958133'
- 1
- - '-4.08237322'
- 1
- - '-4.103125214'
- 1
- - '-4.164871463'
- 1
- - '-4.193814124'
- 1
- - '-4.241150319'
- 1
- - '-4.387445157'
- 1
- - '-4.43031879'
- 1
- - '-4.441541476'
- 1
- - '-4.481165103'
- 1
- - '-4.625511475'
- 1
- - '-4.634322954'
- 1
- - '-4.666260905'
- 1
- - '-4.669779853'
- 1
- - '-4.685296297'
- 1
- - '-4.730928445'
- 1
- - '-4.750405764'
- 1
- - '-4.820659971'
- 1
- - '-4.877468475'
- 1
- - '-4.905183312'
- 1
- - '-4.930951081'
- 1
- - '-4.964590786'
- 1
- - '-5.134246861'
- 1
- - '-5.182839044'
- 1
- - '-5.215123859'
- 1
- - '-5.323193916'
- 1
- - '-5.361603607'
- 1
- - '-5.585674388'
- 1
- - '-5.658348894'
- 1
- - '-5.672753058'
- 1
- - '-5.725478379'
- 1
- - '-5.756823821'
- 1
- - '-5.949111261'
- 1
- - '-6.17457199'
- 1
- - '-6.522047356'
- 1
- - '-6.677796327'
- 1
- - '-6.853638741'
- 1
- - '-6.925657396'
- 1
- - '-7.084845343'
- 1
- - '-7.284620531'
- 1
- - '-7.421063686'
- 1
- - '-7.536574553'
- 1
- - '-8.031589427'
- 1
- - '-8.045901207'
- 1
- - '-8.075370121'
- 1
- - '-8.80528317'
- 1
- - '0.035932985'
- 1
- - '0.0491171198'
- 1
- - '0.115878212'
- 1
- - '0.12489852'
- 1
- - '0.1429577238'
- 1
- - '0.1434205809'
- 1
- - '0.1636036429'
- 1
- - '0.1761338617'
- 1
- - '0.1785216179'
- 1
- - '0.1841620626'
- 1
- - '0.1903203091'
- 1
- - '0.2011222622'
- 1
- - '0.2129562588'
- 1
- - '0.2217540747'
- 1
- - '0.2276348737'
- 1
- - '0.2385211688'
- 1
- - '0.2534083422'
- 1
- - '0.270764232'
- 1
- - '0.283055585'
- 1
- - '0.2873511611'
- 1
- - '0.3340571238'
- 1
- - '0.369193616'
- 1
- - '0.3738317757'
- 1
- - '0.3798670465'
- 1
- - '0.3895066898'
- 1
- - '0.4032004032'
- 1
- - '0.4187253999'
- 1
- - '0.4240782189'
- 1
- - '0.4246464818'
- 1
- - '0.4289574903'
- 1
- - '0.4455997029'
- 1
- - '0.4594532506'
- 1
- - '0.4716703025'
- 1
- - '0.4740178942'
- 1
- - '0.4813329457'
- 1
- - '0.4846135207'
- 1
- - '0.5045444281'
- 1
- - '0.5108274715'
- 1
- - '0.5187963924'
- 1
- - '0.524605453'
- 1
- - '0.5454049632'
- 1
- - '0.5672850073'
- 1
- - '0.5857450944'
- 1
- - '0.6031363088'
- 1
- - '0.6109979633'
- 1
- - '0.6222775358'
- 1
- - '0.6273197763'
- 1
- - '0.6289847614'
- 1
- - '0.6654466811'
- 1
- - '0.6821003233'
- 1
- - '0.7040325419'
- 1
- - '0.7220216606'
- 1
- - '0.7223693715'
- 1
- - '0.7303534911'
- 1
- - '0.7310609522'
- 1
- - '0.7428040854'
- 1
- - '0.7468259895'
- 1
- - '0.7531538317'
- 1
- - '0.7695466852'
- 1
- - '0.7724463831'
- 1
- - '0.7866029104'
- 1
- - '0.8344327549'
- 1
- - '0.8388382091'
- 1
- - '0.8644536653'
- 1
- - '0.8927498412'
- 1
- - '0.8978963571'
- 1
- - '0.9090392591'
- 1
- - '0.939648913'
- 1
- - '0.9445100354'
- 1
- - '0.9811047445'
- 1
- - '0.9942828735'
- 1
- - '0.9960159363'
- 1
- - '1.0186757216'
- 1
- - '1.0449320794'
- 1
- - '1.0496597655'
- 1
- - '1.0913922369'
- 1
- - '1.1052166225'
- 1
- - '1.1228019341'
- 1
- - '1.1341083073'
- 1
- - '1.1466096836'
- 1
- - '1.1480568076'
- 1
- - '1.1491145059'
- 1
- - '1.160586483'
- 1
- - '1.1930326891'
- 1
- - '1.1931172051'
- 1
- - '1.1953778722'
- 1
- - '1.211524628'
- 1
- - '1.2133391473'
- 1
- - '1.2141550876'
- 1
- - '1.2149930138'
- 1
- - '1.2172854534'
- 1
- - '1.218892839'
- 1
- - '1.2189770345'
- 1
- - '1.2253963391'
- 1
- - '1.2720623311'
- 1
- - '1.3108614232'
- 1
- - '1.3157894737'
- 1
- - '1.3183915623'
- 1
- - '1.3354106388'
- 1
- - '1.3384193268'
- 1
- - '1.3428101776'
- 1
- - '1.3464991023'
- 1
- - '1.3870999703'
- 1
- - '1.3962465607'
- 1
- - '1.421354897'
- 1
- - '1.4280808664'
- 1
- - '1.4330595822'
- 1
- - '1.4346630534'
- 1
- - '1.4398848092'
- 1
- - '1.45102146'
- 1
- - '1.4784697838'
- 1
- - '1.4900353883'
- 1
- - '1.5280100766'
- 1
- - '1.5449317655'
- 1
- - '1.5525539512'
- 1
- - '1.5627513617'
- 1
- - '1.563896336'
- 1
- - '1.5759784515'
- 1
- - '1.5824349718'
- 1
- - '1.5902464882'
- 1
- - '1.6167543656'
- 1
- - '1.6233766234'
- 1
- - '1.6260162602'
- 1
- - '1.6620038226'
- 1
- - '1.6801853998'
- 1
- - '1.6813243663'
- 1
- - '1.7182130584'
- 1
- - '1.7341040462'
- 1
- - '1.7406945371'
- 1
- - '1.7444890553'
- 1
- - '1.7517993595'
- 1
- - '1.7572118905'
- 1
- - '1.7579534274'
- 1
- - '1.7749417427'
- 1
- - '1.7969451932'
- 1
- - '1.7985611511'
- 1
- - '1.800180018'
- 1
- - '1.8070928394'
- 1
- - '1.8213428264'
- 1
- - '1.8245614035'
- 1
- - '1.8788842318'
- 1
- - '1.8979833926'
- 1
- - '1.9415680473'
- 1
- - '1.9533975164'
- 1
- - '1.95599022'
- 1
- - '1.9642506384'
- 1
- - '1.9693613831'
- 1
- - '1.9701251514'
- 1
- - '1.99195653'
- 1
- - '1.998001998'
- 1
- - '10.005476044'
- 1
- - '10.236926811'
- 1
- - '10.239606799'
- 1
- - '10.302872495'
- 1
- - '10.365521004'
- 1
- - '10.367892977'
- 1
- - '10.410699609'
- 1
- - '10.457716783'
- 1
- - '10.478128179'
- 1
- - '10.600706714'
- 1
- - '10.655025065'
- 1
- - '10.845879063'
- 1
- - '10.898224644'
- 1
- - '10.942543019'
- 1
- - '11.165283412'
- 1
- - '11.189153871'
- 1
- - '11.352968787'
- 1
- - '11.473941565'
- 1
- - '11.80684077'
- 1
- - '11.839207048'
- 1
- - '12.00956101'
- 1
- - '12.275915822'
- 1
- - '12.360768397'
- 1
- - '12.74473587'
- 1
- - '12.754017516'
- 1
- - '12.778826258'
- 1
- - '13.206229587'
- 1
- - '13.317191283'
- 1
- - '13.493359847'
- 1
- - '13.499480789'
- 1
- - '13.686653526'
- 1
- - '14.245397124'
- 1
- - '15.404899035'
- 1
- - '15.745377504'
- 1
- - '15.894641235'
- 1
- - '16.583747927'
- 1
- - '2.0085026613'
- 1
- - '2.0199469764'
- 1
- - '2.0226055919'
- 1
- - '2.0370747606'
- 1
- - '2.0381423788'
- 1
- - '2.0656383774'
- 1
- - '2.0677177565'
- 1
- - '2.0686412788'
- 1
- - '2.0952020316'
- 1
- - '2.0968085863'
- 1
- - '2.1305260519'
- 1
- - '2.1347248577'
- 1
- - '2.1518598217'
- 1
- - '2.1543985637'
- 1
- - '2.1567217829'
- 1
- - '2.1739130435'
- 1
- - '2.208521211'
- 1
- - '2.2109947595'
- 1
- - '2.2122642399'
- 1
- - '2.2266568638'
- 1
- - '2.2325244622'
- 1
- - '2.2376417202'
- 1
- - '2.2411665414'
- 1
- - '2.2561656945'
- 1
- - '2.3105360444'
- 1
- - '2.3195129023'
- 1
- - '2.3210050961'
- 1
- - '2.3210831721'
- 1
- - '2.3480538246'
- 1
- - '2.3569023569'
- 1
- - '2.3743823397'
- 1
- - '2.3840615488'
- 1
- - '2.3868539429'
- 1
- - '2.3966446974'
- 1
- - '2.4158479626'
- 1
- - '2.4427042173'
- 1
- - '2.4460343668'
- 1
- - '2.4462855692'
- 1
- - '2.4498671842'
- 1
- - '2.4632227164'
- 1
- - '2.4638770567'
- 1
- - '2.4689565028'
- 1
- - '2.4811097327'
- 1
- - '2.5033519311'
- 1
- - '2.5555476681'
- 1
- - '2.5585514662'
- 1
- - '2.5591102596'
- 1
- - '2.574002574'
- 1
- - '2.5982461838'
- 1
- - '2.6474194469'
- 1
- - '2.6483965686'
- 1
- - '2.6766595289'
- 1
- - '2.6886056891'
- 1
- - '2.6971179989'
- 1
- - '2.7140634826'
- 1
- - '2.7231687782'
- 1
- - '2.7408912622'
- 1
- - '2.7452415813'
- 1
- - '2.7526335292'
- 1
- - '2.7586206897'
- 1
- - '2.7829313544'
- 1
- - '2.872437655'
- 1
- - '2.8788298719'
- 1
- - '2.8925934384'
- 1
- - '2.9291766921'
- 1
- - '2.9438405797'
- 1
- - '2.9636947394'
- 1
- - '2.9660388551'
- 1
- - '2.9713266974'
- 1
- - '2.9752355395'
- 1
- - '2.977298102'
- 1
- - '2.979885771'
- 1
- - '2.9820544225'
- 1
- - '2.9882472544'
- 1
- - '2.9990195513'
- 1
- - '20.384435351'
- 1
- - '24.378153717'
- 1
- - '27.777777778'
- 1
- - '3.0098430001'
- 1
- - '3.0127627271'
- 1
- - '3.0180193508'
- 1
- - '3.0278413707'
- 1
- - '3.0298480982'
- 1
- - '3.0569354222'
- 1
- - '3.0654973532'
- 1
- - '3.0796338948'
- 1
- - '3.0810420297'
- 1
- - '3.0918417539'
- 1
- - '3.0983071491'
- 1
- - '3.1395303488'
- 1
- - '3.1483667847'
- 1
- - '3.1511744427'
- 1
- - '3.1628887717'
- 1
- - '3.2215506397'
- 1
- - '3.2362459547'
- 1
- - '3.242481203'
- 1
- - '3.2638059359'
- 1
- - '3.2656070242'
- 1
- - '3.2688353456'
- 1
- - '3.2800622494'
- 1
- - '3.293988471'
- 1
- - '3.3026470617'
- 1
- - '3.3037898281'
- 1
- - '3.3055550723'
- 1
- - '3.3408833522'
- 1
- - '3.3878274572'
- 1
- - '3.4060670569'
- 1
- - '3.4367369087'
- 1
- - '3.4385678848'
- 1
- - '3.4542314335'
- 1
- - '3.4812634439'
- 1
- - '3.4929313011'
- 1
- - '3.5239902413'
- 1
- - '3.5416139641'
- 1
- - '3.5429583702'
- 1
- - '3.5798894446'
- 1
- - '3.5990168539'
- 1
- - '3.6629104876'
- 1
- - '3.6912818274'
- 1
- - '3.707995365'
- 1
- - '3.7208340262'
- 1
- - '3.766662249'
- 1
- - '3.7706806807'
- 1
- - '3.7736785918'
- 1
- - '3.7809115062'
- 1
- - '3.7960693864'
- 1
- - '3.8011609747'
- 1
- - '3.8202247191'
- 1
- - '3.8211197824'
- 1
- - '3.8318180235'
- 1
- - '3.8364286337'
- 1
- - '3.8700865078'
- 1
- - '3.8771781274'
- 1
- - '3.8860565439'
- 1
- - '3.8877729541'
- 1
- - '3.8898130933'
- 1
- - '3.8935516283'
- 1
- - '3.9050692374'
- 1
- - '3.9419741406'
- 1
- - '3.9708802118'
- 1
- - '3.9970022483'
- 1
- - '3.9971024241'
- 1
- - '4.0149812734'
- 1
- - '4.0206163519'
- 1
- - '4.0412204486'
- 1
- - '4.0624331837'
- 1
- - '4.0633888663'
- 1
- - '4.0721235733'
- 1
- - '4.096322088'
- 1
- - '4.1521646211'
- 1
- - '4.1928721174'
- 1
- - '4.2055092171'
- 1
- - '4.2218384187'
- 1
- - '4.2307325389'
- 1
- - '4.2466372696'
- 1
- - '4.2793825462'
- 1
- - '4.3266059887'
- 1
- - '4.347826087'
- 1
- - '4.3838749643'
- 1
- - '4.4061686361'
- 1
- - '4.4113679929'
- 1
- - '4.4163951856'
- 1
- - '4.4255319149'
- 1
- - '4.4436303041'
- 1
- - '4.4470106769'
- 1
- - '4.476215797'
- 1
- - '4.4900033887'
- 1
- - '4.4954286351'
- 1
- - '4.5278656412'
- 1
- - '4.5360418105'
- 1
- - '4.5429962142'
- 1
- - '4.5523652317'
- 1
- - '4.5751633987'
- 1
- - '4.5818515044'
- 1
- - '4.6158918562'
- 1
- - '4.6403712297'
- 1
- - '4.6412877105'
- 1
- - '4.6677179545'
- 1
- - '4.6801872075'
- 1
- - '4.7132757266'
- 1
- - '4.7504127748'
- 1
- - '4.7518601568'
- 1
- - '4.7586056009'
- 1
- - '4.7846446289'
- 1
- - '4.801370514'
- 1
- - '4.8029503838'
- 1
- - '4.8243863154'
- 1
- - '4.8428975698'
- 1
- - '4.8432633816'
- 1
- - '4.8457358581'
- 1
- - '4.8784206113'
- 1
- - '4.8798427694'
- 1
- - '4.8811517441'
- 1
- - '4.9136824915'
- 1
- - '4.9139440388'
- 1
- - '4.9329055849'
- 1
- - '4.9354367556'
- 1
- - '4.9526314802'
- 1
- - '4.9664230847'
- 1
- - '4.9733596945'
- 1
- - '4.9751243781'
- 1
- - '4.9788677242'
- 1
- - '4.9845076115'
- 1
- - '5.005190568'
- 1
- - '5.0291159344'
- 1
- - '5.0910905915'
- 1
- - '5.0923831471'
- 1
- - '5.0946142649'
- 1
- - '5.1139005114'
- 1
- - '5.1160241184'
- 1
- - '5.1295073641'
- 1
- - '5.1529961751'
- 1
- - '5.1772075038'
- 1
- - '5.182845787'
- 1
- - '5.2140063925'
- 1
- - '5.216168717'
- 1
- - '5.2292464282'
- 1
- - '5.2340599085'
- 1
- - '5.2343564121'
- 1
- - '5.2343840875'
- 1
- - '5.3581953598'
- 1
- - '5.3641427687'
- 1
- - '5.3765805925'
- 1
- - '5.400777185'
- 1
- - '5.4134776927'
- 1
- - '5.4588542944'
- 1
- - '5.4644808743'
- 1
- - '5.4790272142'
- 1
- - '5.4852648193'
- 1
- - '5.502699156'
- 1
- - '5.5119425422'
- 1
- - '5.5195119589'
- 1
- - '5.5196685191'
- 1
- - '5.5292259084'
- 1
- - '5.5461639033'
- 1
- - '5.554493404'
- 1
- - '5.5810245166'
- 1
- - '5.5820869382'
- 1
- - '5.593096318'
- 1
- - '5.6121388485'
- 1
- - '5.6196053379'
- 1
- - '5.6213547413'
- 1
- - '5.6606306059'
- 1
- - '5.6918054742'
- 1
- - '5.6961186912'
- 1
- - '5.7184132908'
- 1
- - '5.737841903'
- 1
- - '5.741438485'
- 1
- - '5.757416184'
- 1
- - '5.7776024494'
- 1
- - '5.7850433878'
- 1
- - '5.8519018681'
- 1
- - '5.8626019293'
- 1
- - '5.8626465662'
- 1
- - '5.8765069351'
- 1
- - '5.8767772512'
- 1
- - '5.8867419988'
- 1
- - '5.9120581352'
- 1
- - '5.9169513613'
- 1
- - '5.935007365'
- 1
- - '5.9570440654'
- 1
- - '5.9823946671'
- 1
- - '5.9855349572'
- 1
- - '6.0074365183'
- 1
- - '6.008583691'
- 1
- - '6.0114903169'
- 1
- - '6.1192723677'
- 1
- - '6.1428261341'
- 1
- - '6.1443932412'
- 1
- - '6.201276639'
- 1
- - '6.2383031815'
- 1
- - '6.260083898'
- 1
- - '6.2695924765'
- 1
- - '6.2881782249'
- 1
- - '6.2913269564'
- 1
- - '6.3146404694'
- 1
- - '6.320344789'
- 1
- - '6.3305115937'
- 1
- - '6.3685048487'
- 1
- - '6.3919643876'
- 1
- - '6.4073375398'
- 1
- - '6.4229390681'
- 1
- - '6.4308681672'
- 1
- - '6.4472698657'
- 1
- - '6.4661817786'
- 1
- - '6.4771936197'
- 1
- - '6.495191848'
- 1
- - '6.4969009036'
- 1
- - '6.5046872011'
- 1
- - '6.5157861696'
- 1
- - '6.5236051502'
- 1
- - '6.5385118347'
- 1
- - '6.614948264'
- 1
- - '6.6321311908'
- 1
- - '6.6468092442'
- 1
- - '6.6489361702'
- 1
- - '6.689396228'
- 1
- - '6.6964924498'
- 1
- - '6.6972153683'
- 1
- - '6.7264573991'
- 1
- - '6.7888662593'
- 1
- - '6.829398426'
- 1
- - '6.8322328244'
- 1
- - '6.8369917236'
- 1
- - '6.8374965732'
- 1
- - '6.8708600384'
- 1
- - '6.9195838639'
- 1
- - '6.9246516468'
- 1
- - '6.9278547539'
- 1
- - '6.9642900026'
- 1
- - '7.0016207455'
- 1
- - '7.0501332103'
- 1
- - '7.1090481291'
- 1
- - '7.1403070332'
- 1
- - '7.1684140283'
- 1
- - '7.1972786784'
- 1
- - '7.2021753509'
- 1
- - '7.2250019771'
- 1
- - '7.3010464833'
- 1
- - '7.3670251952'
- 1
- - '7.3743175211'
- 1
- - '7.4028377545'
- 1
- - '7.402865772'
- 1
- - '7.4034596851'
- 1
- - '7.4074074074'
- 1
- - '7.4566590706'
- 1
- - '7.4587632253'
- 1
- - '7.5085324232'
- 1
- - '7.5352062785'
- 1
- - '7.5400565504'
- 1
- - '7.5505467155'
- 1
- - '7.552404439'
- 1
- - '7.5837085689'
- 1
- - '7.6149997786'
- 1
- - '7.6182079302'
- 1
- - '7.6394194041'
- 1
- - '7.6448477543'
- 1
- - '7.6543850545'
- 1
- - '7.6649841092'
- 1
- - '7.7218778126'
- 1
- - '7.8087457953'
- 1
- - '7.8239008542'
- 1
- - '7.8502026897'
- 1
- - '7.8719026747'
- 1
- - '8.0322638726'
- 1
- - '8.0335903306'
- 1
- - '8.1062823688'
- 1
- - '8.1184354637'
- 1
- - '8.1307998232'
- 1
- - '8.1499547983'
- 1
- - '8.2388480839'
- 1
- - '8.2723167589'
- 1
- - '8.2833365589'
- 1
- - '8.3330010765'
- 1
- - '8.3508317745'
- 1
- - '8.4013147655'
- 1
- - '8.4051360027'
- 1
- - '8.4100737259'
- 1
- - '8.4146821696'
- 1
- - '8.4352575682'
- 1
- - '8.4523033578'
- 1
- - '8.544921875'
- 1
- - '8.6195286195'
- 1
- - '8.6261575542'
- 1
- - '8.6313193588'
- 1
- - '8.7617865057'
- 1
- - '8.8021736387'
- 1
- - '8.8059175766'
- 1
- - '8.8149933592'
- 1
- - '8.8193844615'
- 1
- - '8.8880082653'
- 1
- - '8.924344524'
- 1
- - '8.9603251582'
- 1
- - '8.9632779988'
- 1
- - '8.9793862463'
- 1
- - '9.09308447'
- 1
- - '9.0953849343'
- 1
- - '9.1007583965'
- 1
- - '9.145090621'
- 1
- - '9.1967811266'
- 1
- - '9.2592592593'
- 1
- - '9.3013642001'
- 1
- - '9.3169342484'
- 1
- - '9.4667087409'
- 1
- - '9.6933937414'
- 1
- - '9.7123958639'
- 1
- - '9.8232688681'
- 1
- - '9.8297349482'
- 1
- - '9.837627192'
- 1
- - '9.8598215911'
- 1
- - '9.8741051592'
- 1
- - '9.8844561136'
- 1
- - '9.8871220236'
- 1
- - '9.9042588313'
- 1
- - '9.9636461559'
- 1
featurePropHideOutliers: false
colorHelpers:
parseNumber: "function parseNumber (value) {\n\t if (value == null || typeof value === 'number') { // don't bother parsing these\n\t return value;\n\t }\n\n\t const m = value.match(/[-+]?([0-9]+,?)*\\.?[0-9]+/); // get floating point or integer via regex\n\t const num = parseFloat(m && m[0].replace(/,/g, '')); // strip commas, e.g. '1,500' => '1500' (NB only works for US-style numbers)\n\t if (typeof num === 'number' && !isNaN(num)) {\n\t return num;\n\t }\n\t}"
getPaletteColor: "function getPaletteColor (palette, value, alpha = 1, flip = false) {\n\t try {\n\t value = Math.max(Math.min(value, 1), 0); // clamp to 0-1\n\n\t if (flip) {\n\t value = 1 - value; // optionally flip palette\n\t }\n\n\t // function-based palette\n\t if (typeof palette === 'function') {\n\t return palette(value, alpha);\n\t }\n\t // array-based palette\n\t else {\n\t const index = Math.round(value * (palette.values.length-1));\n\t const color = palette.values[index];\n\t return `rgba(${color.map(c => Math.floor(c * 255)).join(', ')}, ${alpha})`;\n\t }\n\t }\n\t catch (e) {\n\t return 'rgba(128, 128, 128, 0.5)';\n\t }\n\t }"
lookupFeatureProp: |-
function(feature) {
try {
return feature['RNATURALINC2018'];
}
catch(e) { return null; } // catches cases where some features lack nested property, or other errors
}
layers:
_xyz_lines:
draw:
_lines:
color: 'function(){ return global.featureColorDynamic(feature, global); }'
width: 4px
outline:
width: 0px
text:
visible: false
_xyz_dots:
draw:
points:
color: 'function(){ return global.featureColorDynamic(feature, global); }'
text:
visible: false
size: 6px
outline:
width: 0px
buildings:
enabled: true
_xyz_polygons:
draw:
text:
visible: false
_polygons_inlay:
color: 'function(){ return global.featureColorDynamic(feature, global); }'
order: 200
_outlines:
draw:
_lines:
width: 0px
places:
enabled: true
roads:
enabled: true
draw:
lines:
visible: true
sources:
mapzen:
url: 'https://xyz.api.here.com/tiles/osmbase/512/all/{z}/{x}/{y}.mvt'
url_params:
access_token: global.xyz_access_token
_xyzspace:
type: GeoJSON
url: 'https://xyz.api.here.com/hub/spaces/oWmXpELu/tile/web/{z}_{x}_{y}'
url_params:
access_token: AIrZgZMV7dDqarJ70CCd_h8
clip: true
cameras:
camera1:
position:
- -114.006
- 37.643
- 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment