Make yesnofix a boolean config that doesn't break everything when it's not present
Opened this issue · 1 comments
thisisaaronland commented
- Make a config variable
- Read / pass that config variable to
base.html
to enable the inclusion of CSS/JS - Don't break with errors like this when the CSS/JS is not present:
2017-03-10T00:41:51.937Z error
failed to format properties for ID 102543875, because TypeError: mapzen.whosonfirst.yesnofix is undefined
thisisaaronland commented
Parking this for now. The problem is that mz.wof.properties.js
relies entirely on ynf.js
for rendering stuff in to a pretty table. It would be nice to chunk out the rendering part of ynf
in to a discrete library that could incorporate the yesnofix stuff but that smells like a yak, today...