tree of leaflet.extras
in preparation for CRAN release
see trafficonese/leaflet.extras#87
forked from timelyportfolio's block: leaflet.extras sunburst
license: mit |
tree of leaflet.extras
in preparation for CRAN release
see trafficonese/leaflet.extras#87
forked from timelyportfolio's block: leaflet.extras sunburst
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="data:application/x-javascript;base64,KGZ1bmN0aW9uKCkgewogIC8vIElmIHdpbmRvdy5IVE1MV2lkZ2V0cyBpcyBhbHJlYWR5IGRlZmluZWQsIHRoZW4gdXNlIGl0OyBvdGhlcndpc2UgY3JlYXRlIGEKICAvLyBuZXcgb2JqZWN0LiBUaGlzIGFsbG93cyBwcmVjZWRpbmcgY29kZSB0byBzZXQgb3B0aW9ucyB0aGF0IGFmZmVjdCB0aGUKICAvLyBpbml0aWFsaXphdGlvbiBwcm9jZXNzICh0aG91Z2ggbm9uZSBjdXJyZW50bHkgZXhpc3QpLgogIHdpbmRvdy5IVE1MV2lkZ2V0cyA9IHdpbmRvdy5IVE1MV2lkZ2V0cyB8fCB7fTsKCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gYSB2aWV3ZXIgcGFuZS4gSWYgbm90LCB3ZSdyZSBpbiBhIHdlYiBicm93c2VyLgogIHZhciB2aWV3ZXJNb2RlID0gd2luZG93LkhUTUxXaWRnZXRzLnZpZXdlck1vZGUgPQogICAgICAvXGJ2aWV3ZXJfcGFuZT0xXGIvLnRlc3Qod2luZG93LmxvY2F0aW9uKTsKCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gU2hpbnkgbW9kZS4gSWYgbm90LCBpdCdzIGEgc3RhdGljIGRvY3VtZW50LgogIC8vIE5vdGUgdGhhdCBzdGF0aWMgd2lkZ2V0cyBjYW4gYXBwZWFyIGluIGJvdGggU2hpbnkgYW5kIHN0YXRpYyBtb2RlcywgYnV0CiAgLy8gb2J2aW91c2x5LCBTaGlueSB3aWRnZXRzIGNhbiBvbmx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tGdW5jID0gZXZhbCgiKCIgKyB0YXNrICsgIikiKTsKICAgICAgICBpZiAodHlwZW9mKHRhc2tGdW5jKSAhPT0gImZ1bmN0aW9uIikgewogICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJUYXNrIG11c3QgYmUgYSBmdW5jdGlvbiEgU291cmNlOlxuIiArIHRhc2spOwogICAgICAgIH0KICAgICAgICB0YXNrRnVuYy5hcHBseSh0YXJnZXQsIHRoZXNlQXJncyk7CiAgICAgIH0pOwogICAgfQogIH0KCiAgZnVuY3Rpb24gaW5pdFNpemluZyhlbCkgewogICAgdmFyIHNpemluZyA9IHNpemluZ1BvbGljeShlbCk7CiAgICBpZiAoIXNpemluZykKICAgICAgcmV0dXJuOwoKICAgIHZhciBjZWwgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiaHRtbHdpZGdldF9jb250YWluZXIiKTsKICAgIGlmICghY2VsKQogICAgICByZXR1cm47CgogICAgaWYgKHR5cGVvZihzaXppbmcucGFkZGluZykgIT09ICJ1bmRlZmluZWQiKSB7CiAgICAgIGRvY3VtZW50LmJvZHkuc3R5bGUubWFyZ2luID0gIjAiOwogICAgICBkb2N1bWVudC5ib2R5LnN0eWxlLnBhZGRpbmcgPSBwYWRkaW5nVG9Dc3ModW5wYWNrUGFkZGluZyhzaXppbmcucGFkZGluZykpOwogICAgfQoKICAgIGlmIChzaXppbmcuZmlsbCkgewogICAgICBkb2N1bWVudC5ib2R5LnN0eWxlLm92ZXJmbG93ID0gImhpZGRlbiI7CiAgICAgIGRvY3VtZW50LmJvZHkuc3R5bGUud2lkdGggPSAiMTAwJSI7CiAgICAgIGRvY3VtZW50LmJvZHkuc3R5bGUuaGVpZ2h0ID0gIjEwMCUiOwogICAgICBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuc3R5bGUud2lkdGggPSAiMTAwJSI7CiAgICAgIGRvY3VtZW50LmRvY3VtZW50RWxlbWVudC5zdHlsZS5oZWlnaHQgPSAiMTAwJSI7CiAgICAgIGlmIChjZWwpIHsKICAgICAgICBjZWwuc3R5bGUucG9zaXRpb24gPSAiYWJzb2x1dGUiOwogICAgICAgIHZhciBwYWQgPSB1bnBhY2tQYWRkaW5nKHNpemluZy5wYWRkaW5nKTsKICAgICAgICBjZWwuc3R5bGUudG9wID0gcGFkLnRvcCArICJweCI7CiAgICAgICAgY2VsLnN0eWxlLnJpZ2h0ID0gcGFkLnJpZ2h0ICsgInB4IjsKICAgICAgICBjZWwuc3R5bGUuYm90dG9tID0gcGFkLmJvdHRvbSArICJweCI7CiAgICAgICAgY2VsLnN0eWxlLmxlZnQgPSBwYWQubGVmdCArICJweCI7CiAgICAgICAgZWwuc3R5bGUud2lkdGggPSAiMTAwJSI7CiAgICAgICAgZWwuc3R5bGUuaGVpZ2h0ID0gIjEwMCUiOwogICAgICB9CgogICAgICByZXR1cm4gewogICAgICAgIGdldFdpZHRoOiBmdW5jdGlvbigpIHsgcmV0dXJuIGNlbC5vZmZzZXRXaWR0aDsgfSwKICAgICAgICBnZXRIZWlnaHQ6IGZ1bmN0aW9uKCkgeyByZXR1cm4gY2VsLm9mZnNldEhlaWdodDsgfQogICAgICB9OwoKICAgIH0gZWxzZSB7CiAgICAgIGVsLnN0eWxlLndpZHRoID0gcHgoc2l6aW5nLndpZHRoKTsKICAgICAgZWwuc3R5bGUuaGVpZ2h0ID0gcHgoc2l6aW5nLmhlaWdodCk7CgogICAgICByZXR1cm4gewogICAgICAgIGdldFdpZHRoOiBmdW5jdGlvbigpIHsgcmV0dXJuIGVsLm9mZnNldFdpZHRoOyB9LAogICAgICAgIGdldEhlaWdodDogZnVuY3Rpb24oKSB7IHJldHVybiBlbC5vZmZzZXRIZWlnaHQ7IH0KICAgICAgfTsKICAgIH0KICB9CgogIC8vIERlZmF1bHQgaW1wbGVtZW50YXRpb25zIGZvciBtZXRob2RzCiAgdmFyIGRlZmF1bHRzID0gewogICAgZmluZDogZnVuY3Rpb24oc2NvcGUpIHsKICAgICAgcmV0dXJuIH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bnQgdG8gc2hyaW5rOyBzbyB1c2UgbWF4LXdpZHRoIGluc3RlYWQKICAgICAgICAgICAgLmNzcygibWF4V2lkdGgiLCBlbC5vZmZzZXRXaWR0aCkKICAgICAgICAgICAgLmNzcygiaGVpZ2h0IiwgZWwub2Zmc2V0SGVpZ2h0KTsKICAgICAgICAgIGVycm9yRGl2LnRleHQoZXJyLm1lc3NhZ2UpOwogICAgICAgICAgJGVsLmFmdGVyKGVycm9yRGl2KTsKCiAgICAgICAgICAvLyBSZWFsbHkgZHVtYiB3YXkgdG8ga2VlcCB0aGUgc2l6ZS9wb3NpdGlvbiBvZiB0aGUgZXJyb3IgaW4gc3luYyB3aXRoCiAgICAgICAgICAvLyB0aGUgcGFyZW50IGVsZW1lbnQgYXMgdGhlIHdpbmRvdyBpcyByZXNpemVkIG9yIHdoYXRldmVyLgogICAgICAgICAgdmFyIGludElkID0gc2V0SW50ZXJ2YWwoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGlmICghZXJyb3JEaXZbMF0ucGFyZW50RWxlbWVudCkgewogICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwoaW50SWQpOwogICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvckRpdgogICAgICAgICAgICAgIC5jc3MoInRvcCIsIGVsLm9mZnNldFRvcCkKICAgICAgICAgICAgICAuY3NzKCJsZWZ0IiwgZWwub2Zmc2V0TGVmdCkKICAgICAgICAgICAgICAuY3NzKCJtYXhXaWR0aCIsIGVsLm9mZnNldFdpZHRoKQogICAgICAgICAgICAgIC5jc3MoImhlaWdodCIsIGVsLm9mZnNldEhlaWdodCk7CiAgICAgICAgICB9LCA1MDApOwogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgIGNsZWFyRXJyb3I6IGZ1bmN0aW9uKGVsKSB7CiAgICAgIHZhciAkZWwgPSAkKGVsKTsKICAgICAgdmFyIGRpc3BsYXkgPSAkZWwuZGF0YSgicmVzdG9yZS1ka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ciBpID0gMDsgZGF0YS5ldmFscyAmJiBpIDwgZGF0YS5ldmFscy5sZW5ndGg7IGkrKykgewogICAgICAgICAgd2luZG93LkhUTUxXaWRnZXRzLmV2YWx1YXRlU3RyaW5nTWVtYmVyKGRhdGEueCwgZGF0YS5ldmFsc1tpXSk7CiAgICAgICAgfQogICAgICAgIGlmICghYmluZGluZ0RlZi5yZW5kZXJPbk51bGxWYWx1ZSkgewogICAgICAgICAgaWYgKGRhdGEueCA9PT0gbnVsbCkgewogICAgICAgICAgICBlbC5zdHlsZS52aXNpYmlsaXR5ID0gImhpZGRlbiI7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGVsLnN0eWxlLnZpc2liaWxpdHkgPSAiaW5oZXJpdCI7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmICghZWxlbWVudERhdGEoZWwsICJpbml0aWFsaXplZCIpKSB7CiAgICAgICAgICBpbml0U2l6aW5nKGVsKTsKCiAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRpYWxpemVkIiwgdHJ1ZSk7CiAgICAgICAgICBpZiAoYmluZGluZ0RlZi5pbml0aWFsaXplKSB7CiAgICAgICAgICAgIHZhciByZXN1bHQgPSBiaW5kaW5nRGVmLmluaXRpYWxpemUoZWwsIGVsLm9mZnNldFdpZHRoLAogICAgICAgICAgICAgIGVsLm9mZnNldEhlaWdodCk7CiAgICAgICAgICAgIGVsZW1lbnREYXRhKGVsLCAiaW5pdF9yZXN1bHQiLCByZXN1bHQpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBTaGlueS5yZW5kZXJEZXBlbmRlbmNpZXMoZGF0YS5kZXBzKTsKICAgICAgICBiaW5kaW5nRGVmLnJlbmRlclZhbHVlKGVsLCBkYXRhLngsIGVsZW1lbnREYXRhKGVsLCAiaW5pdF9yZXN1bHQiKSk7CiAgICAgICAgZXZhbEFuZFJ1bihkYXRhLmpzSG9va3MucmVuZGV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AgICAgICApOwogICAgICAgICAgZWxlbWVudERhdGEoZWwsICJpbml0X3Jlc3VsdCIsIGluaXRSZXN1bHQpOwogICAgICAgIH0KCiAgICAgICAgaWYgKGJpbmRpbmcucmVzaXplKSB7CiAgICAgICAgICB2YXIgbGFzdFNpemUgPSB7fTsKICAgICAgICAgIHZhciByZXNpemVIYW5kbGVyID0gZnVuY3Rpb24oZSkgewogICAgICAgICAgICB2YXIgc2l6ZSA9IHsKICAgICAgICAgICAgICB3OiBzaXplT2JqID8gc2l6ZU9iai5nZXRXaWR0aCgpIDogZWwub2Zmc2V0V2lkdGgsCiAgICAgICAgICAgICAgaDogc2l6ZU9iaiA/IHNpemVPYmouZ2V0SGVpZ2h0KCkgOiBlbC5vZmZzZXRIZWlnaHQKICAgICAgICAgICAgfTsKICAgICAgICAgICAgaWYgKHNpemUudyA9PT0gMCAmJiBzaXplLmggPT09IDApCiAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICBpZiAoc2l6ZS53ID09PSBsYXN0U2l6ZS53ICYmIHNpemUuaCA9PT0gbGFzdFNpemUuaCkKICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgIGxhc3RTaXplID0gc2l6ZTsKICAgICAgICAgICAgYmluZGluZy5yZXNpemUoZWwsIHNpemUudywgc2l6ZS5oLCBpbml0UmVzdWx0KTsKICAgICAgICAgIH07CgogICAgICAgICAgb24od2luZG93LCAicmVzaXplIiwgcmVzaXplSGFuZGxlcik7CgogICAgICAgICAgLy8gVGhpcyBpcyBuZWVkZWQgZm9yIGNhc2VzIHdoZXJlIHdlJ3JlIHJ1bm5pbmcgaW4gYSBTaGlueQogICAgICAgICAgLy8gYXBwLCBidXQgdGhlIHdpZGdldCBpdHNlbGYgaXMgbm90IGEgU2hpbnkgb3V0cHV0LCBidXQKICAgICAgICAgIC8vIHJhdGhlciBhIHNpbXBsZSBzdGF0aWMgd2lkZ2V0LiBPbmUgZXhhbXBsZSBvZiB0aGlzIGlzCiAgICAgICA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oZWwsIHdpZHRoLCBoZWlnaHQpIHsKICAgICAgICByZXR1cm4gZGVmbi5mYWN0b3J5KGVsLCB3aWR0aCwgaGVpZ2h0KTsKICAgICAgfSwKICAgICAgcmVuZGVyVmFsdWU6IGZ1bmN0aW9uKGVsLCB4LCBpbnN0YW5jZSkgewogICAgICAgIHJldHVybiBpbnN0YW5jZS5yZW5kZXJWYWx1ZSh4KTsKICAgICAgfSwKICAgICAgcmVzaXplOiBmdW5jdGlvbihlbCwgd2lkdGgsIGhlaWdodCwgaW5zdGFuY2UpIHsKICAgICAgICByZXR1cm4gaW5zdGFuY2UucmVzaXplKHdpZHRoLCBoZWlnaHQpOwogICAgICB9CiAgICB9OwoKICAgIGlmIChkZWZuLmZpbmQpCiAgICAgIHJlc3VsdC5maW5kID0gZGVmbi5maW5kOwogICAgaWYgKGRlZm4ucmVuZGVyRXJyb3IpCiAgICAgIHJlc3VsdC5yZW5kZXJFcnJvciA9IGRlZm4ucmVuZGVyRXJyb3I7CiAgICBpZiAoZGVmbi5jbGVhckVycm9yKQogICAgICByZXN1bHQuY2xlYXJFcnJvciA9IGRlZm4uY2xlYXJFcnJvcjsKCiAgICByZXR1cm4gcmVzdWx0OwogIH0KfSkoKTsKCg=="></script> | |
<script src="data:application/x-javascript;base64,IWZ1bmN0aW9uKCl7ZnVuY3Rpb24gbihuKXtyZXR1cm4gbiYmKG4ub3duZXJEb2N1bWVudHx8bi5kb2N1bWVudHx8bikuZG9jdW1lbnRFbGVtZW50fWZ1bmN0aW9uIHQobil7cmV0dXJuIG4mJihuLm93bmVyRG9jdW1lbnQmJm4ub3duZXJEb2N1bWVudC5kZWZhdWx0Vmlld3x8bi5kb2N1bWVudCYmbnx8bi5kZWZhdWx0Vmlldyl9ZnVuY3Rpb24gZShuLHQpe3JldHVybiB0Pm4/LTE6bj50PzE6bj49dD8wOjAvMH1mdW5jdGlvbiByKG4pe3JldHVybiBudWxsPT09bj8wLzA6K259ZnVuY3Rpb24gdShuKXtyZXR1c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B%0Afont%2Dsize%3A%2010px%3B%0A%7D%0A%2Ed3tree2%20%2Egrandparent%20text%20%7B%0Afont%2Dweight%3A%20bold%3B%0Afont%2Dsize%3A%20inherit%3B%0A%7D%0A%2Ed3tree2%20%2Elegend%20text%7B%0Afont%2Dsize%3A%20inherit%3B%0A%7D%0A%2Ed3tree2%20rect%20%7B%0A%0Astroke%3A%20%23fff%3B%0Astroke%2Dwidth%3A%201px%3B%0A%7D%0A%2Ed3tree2%20rect%2Eparent%2C%0A%2Ed3tree2%20%2Egrandparent%20rect%20%7B%0Astroke%2Dwidth%3A%202px%3B%0A%7D%0A%2Ed3tree2%20%2Egrandparent%3Ahover%20rect%20%7B%0Afill%3A%20darkgrey%3B%0A%7D%0A%2Ed3tree2%20%2Echildren%20rect%2Eparent%2C%0A%2Ed3tree2%20%2Egrandparent%20rect%20%7B%0Acursor%3A%20pointer%3B%0A%7D%0A%2Ed3tree2%20%2Echildren%20rect%2Echild%20%7B%0Aopacity%3A%200%3B%0A%7D%0A%2Ed3tree2%20%2Echildren%20rect%2Eparent%20%7B%0A%7D%0A%2Ed3tree2%20%2Echildren%20text%7B%0A%7D%0A%2Ed3tree2%20%2Echildren%3Ahover%20rect%2Echild%20%7B%0Aopacity%3A%201%3B%0Astroke%2Dwidth%3A%201px%3B%0A%7D%0A%2Ed3tree2%20%2Echildren%3Ahover%20rect%2Eparent%20%7B%0Aopacity%3A%200%3B%0A%7D%0A" rel="stylesheet" /> | |
<script src="data:application/x-javascript;base64,SFRNTFdpZGdldHMud2lkZ2V0KHsKCiAgbmFtZTogJ2QzdHJlZTInLAoKICB0eXBlOiAnb3V0cHV0JywKCiAgaW5pdGlhbGl6ZTogZnVuY3Rpb24oZWwsIHdpZHRoLCBoZWlnaHQpIHsKCiAgICByZXR1cm4gewoKICAgIH0KCiAgfSwKCiAgcmVuZGVyVmFsdWU6IGZ1bmN0aW9uKGVsLCB4LCBpbnN0YW5jZSkgewoKICAgIC8vY2xlYXIgb3V0IGVsIG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F0YSApOwoKCiAgICAvLyBzZXQgdXAgYSBjb250YWluZXIgZm9yIHRhc2tzIHRvIHBlcmZvcm0gYWZ0ZXIgY29tcGxldGlvbgogICAgLy8gIG9uZSBleGFtcGxlIHdvdWxkIGJlIGFkZCBjYWxsYmFja3MgZm9yIGV2ZW50IGhhbmRsaW5nCiAgICAvLyAgc3R5bGluZwogICAgaWYgKCEodHlwZW9mIHgudGFza3MgPT09ICJ1bmRlZmluZWQiKSApewogICAgICBpZiAoICh0eXBlb2YgeC50YXNrcy5sZW5ndGggPT09ICJ1bmRlZmluZWQiKSB8fAogICAgICAgKHR5cGVvZiB4LnRhc2tzID09PSAiZnVuY3Rpb24iICkgKSB7CiAgICAgICAgIC8vIGhhbmRsZSBhIGZ1bmN0aW9uIG5vdCBlbmNsb3NlZCBpbiBhcnJheQogICAgICAgICAvLyBzaG91bGQgYmUgYWJsZSB0byByZW1vdmUgb25jZSB1c2luZyBqc29ubGl0ZQogICAgICAgICB4LnRhc2tzID0gW3gudGFza3NdOwogICAgICB9CiAgICAgIHgudGFza3MubWFwKGZ1bmN0aW9uKHQpewogICAgICAgIC8vIGZvciBlYWNoIHRhc2tzIGNhbGwgdGhlIHRhc2sgd2l0aCBlbCBzdXBwbGllZCBhcyBgdGhpc2AKICAgICAgICB0LmNhbGwoZWwpOwogICAgICB9KQogICAgfQoKCiAgICBmdW5jdGlvbiBkcmF3KHJvb3QpIHsKICAgICAgaW5pdGlhbGl6ZShyb290KTsKICAgICAgYWNjdW11bGF0ZShyb290KTsKICAgICAgbGF5b3V0KHJvb3QpOwogICAgICBkaXNwbGF5KHJvb3QpOwoKICAgICAgZnVuY3Rpb24gaW5pdGlhbGl6ZShyb290KSB7CiAgICAgICAgcm9vdC54ID0gcm9vdC55ID0gMDsKICAgICAgICByb290LmR4ID0gd2lkdGg7CiAgICAgICAgcm9vdC5keSA9IGhlaWdodDsKICAgICAgICByb290LmRlcHRoID0gMDsKICAgICAgfQoKICAgICAgLy8gQWdncmVnY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9vbSBzdGF0ZS4gTm90ZSB0aGF0IGEgd3JhcHBlcgogICAgICAvLyBvYmplY3QgaXMgY3JlYXRlZCBmb3IgdGhlIHBhcmVudCBub2RlIGZvciBlYWNoIGdyb3VwIG9mIHNpYmxpbmdzIHNvIHRoYXQKICAgICAgLy8gdGhlIHBhcmVudOKAmXMgZGltZW5zaW9ucyBhcmUgbm90IGRpc2NhcmRlZCBhcyB3ZSByZWN1cnNlLiBTaW5jZSBlYWNoIGdyb3VwCiAgICAgIC8vIG9mIHNpYmxpbmcgd2FzIGxhaWQgb3V0IGluIDHDlzEsIHdlIG11c3QgcmVzY2FsZSB0byBmaXQgdXNpbmcgYWJzb2x1dGUKICAgICAgLy8gY29vcmRpbmF0ZXMuIFRoaXMgbGV0cyB1cyB1c2UgYSB2aWV3cG9ydCB0byB6b29tLgogICAgICBmdW5jdGlvbiBsYXlvdXQoZCkgewogICAgICAgIGlmIChkLl9jaGlsZHJlbikgewogICAgICAgICAgdHJlZW1hcC5ub2Rlcyh7X2NoaWxkcmVuOiBkLl9jaGlsZHJlbn0pOwogICAgICAgICAgZC5fY2hpbGRyZW4uZm9yRWFjaChmdW5jdGlvbihjKSB7CiAgICAgICAgICAgIGMueCA9IGQueCArIGMueCAqIGQuZHg7CiAgICAgICAgICAgIGMueSA9IGQueSArIGMueSAqIGQuZHk7CiAgICAgICAgICAgIGMuZHggKj0gZC5keDsKICAgICAgICAgICAgYy5keSAqPSBkLmR5OwogICAgICAgICAgICBjLnBhcmVudCA9IGQ7CiAgICAgICAgICAgIGxheW91dChjKTsKICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgfQoKICAgICAgZnVuY3Rpb24gZGlzcGxheShkKSB7CiAgICAgICAgZ3JhbmRwYXJlbnQKICAgICAgICAgICAgLmRhdHVtKCBkICkKICAgICAgICAgICAgLm9uKCJjbGljayIsIGZ1bmN0aW9uKGQpewogICAgICAgICAgICAgIHRyYW5zaXRpb24oIChkLnBhcmVudCkgPyBkLnBhcmVudDogZCApOwogICAgICAgICAgICAgIGNvbW11bmljYXRlQ2xpY2soIGQucGFyZW50ID8gZC5wYXJlbnQ6IGQgKTsKICAgICAgICAgICAgfSApCiAgICAgICAgICAuc2VsZWN0KCJ0ZXh0IikKICAgICAgICAgICAgLnRleHQobmFtZShkKSkKICAgICAgICAgICAgLnN0eWxlKCJmaWxsIiwgZnVuY3Rpb24gKGQpIHsKICAgICAgICAgICAgICByZXR1cm4gaWRlYWxUZXh0Q29sb3IoIGQuY29sb3IgPyBkLmNvbG9yIDogY29sb3IobGV2ZWx0d28oZClbY2VsbHRleHRdKSApOwogICAgICAgICAgICB9KTsKCiAgICAgICAgZ3JhbmRwYXJlbnQKICAgICAgICAgIC5zZWxlY3QoInJlY3QiKQogICAgICAgICAgICAuc3R5bGUoImZpbGwiLGZ1bmN0aW9uKGQpewogICAgICAgICAgICAgIHJldHVybiAoZCkgPwogICAgICAgICAgICAgICAgKCAoZC5jb2xvcikgPyBkLmNvbG9yIDogY29sb3IobGV2ZWx0d28oZClbY2VsbHRleHRdKSApIDoKICAgICAgICAgICAgICAgICIjYmJiIjsKICAgICAgICAgICAgfSkKCiAgICAgICAgdmFyIGcxID0gc3ZnLmluc2VydCgiZyIsICIuZ3JhbmRwYXJlbnQiKQogICAgICAgICAgICAuZGF0dW0oZCkKICAgICAgICAgICAgLmF0dHIoImNsYXNzIiwgImRlcHRoIik7CgogICAgICAgIHZhciBnID0gZzEuc2VsZWN0QWxsKCJnIikKICAgICAgICAgICAgLmRhdGEoZC5fY2hpbGRyZW4pCiAgICAgICAgICAuZW50ZXIoKS5hcHBlbmQoImciKTsKCiAgICAgICAgZy5maWx0ZXIoZnVuY3Rpb24oZCkgeyByZXR1cm4gZC5fY2hpbGRyZW47IH0pCiAgICAgICAgICAgIC5jbGFzc2VkKCJjaGlsZHJlbiIsIHRydWUpCiAgICAgICAgICAgIC5vbigiY2xpY2siLCB0cmFuc2l0aW9uKTsKCiAgICAgICAgZy5zZWxlY3RBbGwoIi5jaGlsZCIpCiAgICAgICAgICAgIC5kYXRhKGZ1bmN0aW9uKGQpIHsgcmV0dXJuIGQuX2NoaWxkcmVuIHx8IFtkXTsgfSkKICAgICAgICAgIC5lbnRlcigpLmFwcGVuZCgicmVjdCIpCiAgICAgICAgICAgIC5hdHRyKCJjbGFzcyIsICJjaGlsZCIpCiAgICAgICAgICAgIC5jYWxsKHJlY3QpOwoKICAgICAgICBnLmFwcGVuZCgicmVjdCIpCiAgICAgICAgICAgIC5hdHRyKCJjbGFzcyIsICJwYXJlbnQiKQogICAgICAgICAgICAuY2FsbChyZWN0KQogICAgICAgICAgICAub24oImNsaWNrIiwgZnVuY3Rpb24oZCl7CiAgICAgICAgICAgICAgY29tbXVuaWNhdGVDbGljayhkKTsKICAgICAgICAgICAgfSkKICAgICAgICAgIC5hcHBlbmQoInRpdGxlIikKICAgICAgICAgICAgLnRleHQoZnVuY3Rpb24oZCkgeyByZXR1cm4gZm9ybWF0TnVtYmVyKGRbdmFsdWVGaWVsZF0pOyB9KTsKCiAgICAgICAgZy5hcHBlbmQoInRleHQiKQogICAgICAgICAgICAuYXR0cigiZHkiLCAiLjc1ZW0iKQogICAgICAgICAgICAudGV4dChmdW5jdGlvbihkKSB7IHJldHVybiBkW2NlbGx0ZXh0XTsgfSkKICAgICAgICAgICAgLmNhbGwodGV4dCk7CgogICAgICAgIGZ1bmN0aW9uIHRyYW5zaXRpb24oZCkgewogICAgICAgICAgaWYgKHRyYW5zaXRpb25pbmcgfHwgIWQpIHJldHVybjsKICAgICAgICAgIHRyYW5zaXRpb25pbmcgPSB0cnVlOwoKICAgICAgICAgIHZhciBnMiA9IGRpc3BsYXkoZCksCiAgICAgICAgICAgICAgdDEgPSBnMS50cmFuc2l0aW9uKCkuZHVyYXRpb24oNzUwKSwKICAgICAgICAgICAgICB0MiA9IGcyLnRyYW5zaXRpb24oKS5kdXJhdGlvbig3NTApOwoKICAgICAgICAgIC8vIFVwZGF0ZSB0aGUgZG9tYWluIG9ubHk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5jdGlvbigpIHsKICAgICAgICAgICAgc3ZnLnN0eWxlKCJzaGFwZS1yZW5kZXJpbmciLCAiY3Jpc3BFZGdlcyIpOwogICAgICAgICAgICB0cmFuc2l0aW9uaW5nID0gZmFsc2U7CiAgICAgICAgICB9KTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBnOwogICAgICB9CgogICAgICBmdW5jdGlvbiBjb21tdW5pY2F0ZUNsaWNrKGQpewoKICAgICAgICAvLyBhZGQgYSBob29rIHRvIFNoaW55CiAgICAgICAgaWYoIEhUTUxXaWRnZXRzLnNoaW55TW9kZSApewogICAgICAgICAgU2hpbnkub25JbnB1dENoYW5nZShlbC5pZCArICdfY2xpY2snLCB7bmFtZTpkW2NlbGx0ZXh0XSxpZDpkW2NlbGxpZF19KTsKICAgICAgICB9CgogICAgICAgIC8vIGNoZWNrIGZvciBhZGRpdGlvbmFsIGNsaWNrQWN0aW9uIHRvIHBlcmZvcm0KICAgICAgICBpZiggeC5vcHRpb25zLmNsaWNrQWN0aW9uICYmIHR5cGVvZiB4Lm9wdGlvbnMuY2xpY2tBY3Rpb24gPT09ICJmdW5jdGlvbiIgKXsKICAgICAgICAgIHgub3B0aW9ucy5jbGlja0FjdGlvbihkKTsKICAgICAgICB9CgogICAgICB9OwoKICAgICAgZnVuY3Rpb24gdGV4dCh0ZXh0KSB7CiAgICAgICAgdGV4dC5hdHRyKCJ4IiwgZnVuY3Rpb24oZCkgeyByZXR1cm4geHNjYWxlKGQueCkgKyA2OyB9KQogICAgICAgICAgICAuYXR0cigieSIsIGZ1bmN0aW9uKGQpIHsgcmV0dXJuIHlzY2FsZShkLnkpICsgNjsgfSkKICAgICAgICAgICAgLnN0eWxlKCJmaWxsIiwgZnVuY3Rpb24gKGQpIHsKICAgICAgICAgICAgICByZXR1cm4gaWRlYWxUZXh0Q29sb3IoIGQuY29sb3IgPyBkLmNvbG9yIDogY29sb3IobGV2ZWx0d28oZClbY2VsbHRleHRdKSApOwogICAgICAgICAgICB9KTsK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50LnBhcmVudCApID8KICAgICAgICAgIGxldmVsdHdvKCBkLnBhcmVudCApIDoKICAgICAgICAgIGQ7CiAgICAgIH0KCiAgICB9CgogIH0sCgogIHJlc2l6ZTogZnVuY3Rpb24oZWwsIHdpZHRoLCBoZWlnaHQsIGluc3RhbmNlKSB7CgogIH0KCn0pOwo="></script> | |
</head> | |
<body style="background-color:white;"> | |
<div id="htmlwidget_container"> | |
<div id="htmlwidget-0e099b0dd331097d6b77" class="d3tree2 html-widget" style="width:960px;height:500px;"> | |
</div> | |
</div> | |
<script type="application/json" data-for="htmlwidget-0e099b0dd331097d6b77">{"x":{"data":{"name":"leaflet.extras","children":[{"name":"CONDUCT.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1412},{"name":"DESCRIPTION","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":1171},{"name":"docs","children":[{"name":"authors.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3466},{"name":"index.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":9245},{"name":"jquery.sticky-kit.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2807},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":35815},{"name":"link.svg","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":822},{"name":"news","children":[{"name":"index.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":13191}]},{"name":"pkgdown.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1990},{"name":"pkgdown.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":148},{"name":"reference","children":[{"name":"addAwesomeMarkersDependencies.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3992},{"name":"addBootstrapDependency.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3814},{"name":"addGeodesicPolylines.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":10185},{"name":"draw-options.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":11932},{"name":"draw.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":6982},{"name":"fullscreen.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4663},{"name":"gps.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5379},{"name":"heatmap.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":11859},{"name":"index.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":11369},{"name":"leaflet.extras.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3415},{"name":"leafletExtrasDependencies.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3853},{"name":"leaflethash.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4305},{"name":"measure-path.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5363},{"name":"omnivore.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":26383},{"name":"pulseMarkers.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":8897},{"name":"search-options.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":10742},{"name":"search.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4892},{"name":"sleep.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5068},{"name":"style-editor.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4856},{"name":"TileCaching.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4891},{"name":"utils.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5192},{"name":"weatherMarkers.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":9032},{"name":"webglheatmap.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":11160},{"name":"wms-legend.html","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4218}]}]},{"name":"inst","children":[{"name":"examples","children":[{"name":"CSV.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":853},{"name":"data","children":[{"name":"csv","children":[{"name":"us_airports.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5929},{"name":"world_airports.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":74957}]},{"name":"gpx","children":[{"name":"md-airports.gpx.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5414},{"name":"md-towns.gpx.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":10837},{"name":"St_Louis_Zoo_sample.gpx.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1299}]},{"name":"kml","children":[{"name":"cb_2015_us_state_20m.kml.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":148025},{"name":"crimes.kml.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":268476}]},{"name":"London-Crimes","children":[{"name":"2016-01","children":[{"name":"2016-01-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":22298}]},{"name":"2016-02","children":[{"name":"2016-02-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":24268}]},{"name":"2016-03","children":[{"name":"2016-03-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":25277}]},{"name":"2016-04","children":[{"name":"2016-04-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":25092}]},{"name":"2016-05","children":[{"name":"2016-05-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":24061}]},{"name":"2016-06","children":[{"name":"2016-06-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":24817}]},{"name":"2016-07","children":[{"name":"2016-07-city-of-london-street.csv.zip","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":25450}]}]}]},{"name":"draw.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3212},{"name":"geodesic.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3204},{"name":"geojsonv2.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":11522},{"name":"GPX.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1180},{"name":"heatmaps.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2478},{"name":"KML.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1900},{"name":"measurePath.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2975},{"name":"pulseIcon.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1698},{"name":"search.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2147},{"name":"shiny","children":[{"name":"draw-events","children":[{"name":"app.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1302}]},{"name":"search","children":[{"name":"app.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":346}]}]},{"name":"sleep.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":392},{"name":"TileLayer-Caching.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1109},{"name":"TopoJSON.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2791},{"name":"virginia.rds","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":22727557},{"name":"weatherIcons.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2134},{"name":"webglHeatmaps.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2743},{"name":"wmsLegend.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":871}]},{"name":"htmlwidgets","children":[{"name":"lib","children":[{"name":"draw","children":[{"name":"draw-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7579},{"name":"images","children":[{"name":"layers-2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1259},{"name":"layers.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":696},{"name":"marker-icon-2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2586},{"name":"marker-icon.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1466},{"name":"marker-shadow.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":618},{"name":"spritesheet-2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2078},{"name":"spritesheet.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1056},{"name":"spritesheet.svg","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1834}]},{"name":"leaflet.draw-src.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7630},{"name":"leaflet.draw-src.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":119007},{"name":"leaflet.draw-src.map","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":148818},{"name":"leaflet.draw.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5087},{"name":"Leaflet.draw.drag-src.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":26263},{"name":"Leaflet.draw.drag.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":13644},{"name":"leaflet.draw.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":62042},{"name":"MIT-LICENSE.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1087},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2127}]},{"name":"fullscreen","children":[{"name":"fullscreen.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":299},{"name":"fullscreen@2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":420},{"name":"leaflet.fullscreen.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1034},{"name":"Leaflet.fullscreen.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5225},{"name":"Leaflet.fullscreen.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3677},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":730},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":638}]},{"name":"geodesic","children":[{"name":"geodesic-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2267},{"name":"Leaflet.Geodesic.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":18015},{"name":"Leaflet.Geodesic.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7157},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":35793},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":550}]},{"name":"geojson-choropleth","children":[{"name":"choropleth-src.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":10977},{"name":"choropleth.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":43779},{"name":"choropleth.js.map","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":137020},{"name":"LICENSE.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1102},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":933}]},{"name":"gps","children":[{"name":"gps-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1616},{"name":"images","children":[{"name":"gps-icon.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2081}]},{"name":"leaflet-gps.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1182},{"name":"leaflet-gps.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5633},{"name":"leaflet-gps.min.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1300},{"name":"leaflet-gps.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3332},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":967}]},{"name":"hash","children":[{"name":"leaflet-hash.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3624},{"name":"LICENSE.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1073},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":496}]},{"name":"heat","children":[{"name":"heat-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":5980},{"name":"leaflet-heat.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4951},{"name":"leaflet-heat2.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4918},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1343},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1250}]},{"name":"icon-pulse","children":[{"name":"L.Icon.Pulse.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":797},{"name":"L.Icon.Pulse.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2192},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1124},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":874},{"name":"plugin-pulseIcon-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1603}]},{"name":"mapshaper","children":[{"name":"mapshaper.js","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:59:59Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":637515}]},{"name":"measure-path","children":[{"name":"leaflet-measure-path.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":559},{"name":"leaflet-measure-path.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":14175},{"name":"LICENSE.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2416},{"name":"measure-path-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1169},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":621}]},{"name":"omnivore","children":[{"name":"csv2geojson.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":14021},{"name":"omnivore-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":17727},{"name":"polyline.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4971},{"name":"toGeoJSON.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":22649},{"name":"topojson.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":16697},{"name":"wellknown.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7078}]},{"name":"search","children":[{"name":"images","children":[{"name":"back.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":117578},{"name":"leaflet-search.jpg","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":148555},{"name":"loader.gif","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1849},{"name":"search-icon-mobile.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3959},{"name":"search-icon.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3838}]},{"name":"leaflet-search-binding.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3630},{"name":"leaflet-search.min.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2627},{"name":"leaflet-search.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":15725},{"name":"leaflet-search.mobile.min.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1726},{"name":"leaflet-search.mobile.src.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2001},{"name":"leaflet-search.src.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3107},{"name":"leaflet-search.src.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":30248}]},{"name":"sleep","children":[{"name":"Leaflet.Sleep.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":6714},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1089},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":609}]},{"name":"style-editor","children":[{"name":"img","children":[{"name":"icon.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4546}]},{"name":"Leaflet.StyleEditor.min.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3828},{"name":"Leaflet.StyleEditor.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":16064},{"name":"LICENSE.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1067},{"name":"package.json","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":726},{"name":"styleEditor-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":613}]},{"name":"TileLayer.PouchDBCached","children":[{"name":"COPYING","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1096},{"name":"L.TileLayer.PouchDBCached.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":6697},{"name":"pouchdb-6.0.7.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":922643}]},{"name":"turf","children":[{"name":"turf.min.js","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:59:59Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":532896}]},{"name":"utils","children":[{"name":"leaflet_extras-utils.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":269}]},{"name":"weather-markers","children":[{"name":"font","children":[{"name":"weathericons-regular-webfont.eot","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":99774},{"name":"weathericons-regular-webfont.svg","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":185225},{"name":"weathericons-regular-webfont.ttf","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":99564},{"name":"weathericons-regular-webfont.woff","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":56468}]},{"name":"images","children":[{"name":"markers-matte.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":14323},{"name":"markers-matte@2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":31113},{"name":"markers-plain.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7946},{"name":"markers-shadow.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":535},{"name":"markers-shadow@2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1469},{"name":"markers-soft.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":41226},{"name":"markers-soft@2x.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":66408}]},{"name":"leaflet.weather-markers.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2379},{"name":"leaflet.weather-markers.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3771},{"name":"leaflet.weather-markers.min.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1735},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1060},{"name":"plugin-weatherMarkers-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1822},{"name":"weather-icons-wind.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":150459},{"name":"weather-icons-wind.min.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":126750},{"name":"weather-icons.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":32494},{"name":"weather-icons.min.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":26654}]},{"name":"webgl-heatmap","children":[{"name":"deep-sea-gradient.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3403},{"name":"LICENSE.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1095},{"name":"skyline-gradient.png","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3452},{"name":"webgl-heatmap-bindings.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7163},{"name":"webgl-heatmap-leaflet.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4754},{"name":"webgl-heatmap.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":41022}]},{"name":"wms-legend","children":[{"name":"leaflet.wmslegend.css","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":362},{"name":"leaflet.wmslegend.js","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2241},{"name":"LICENSE.txt","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1098}]}]}]}]},{"name":"leaflet.extras.Rproj","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":426},{"name":"LICENSE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":35815},{"name":"man","children":[{"name":"addAwesomeMarkersDependencies.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":463},{"name":"addBootstrapDependency.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":346},{"name":"addGeodesicPolylines.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2968},{"name":"draw-options.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4313},{"name":"draw.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2171},{"name":"fullscreen.Rd","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":623},{"name":"gps.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1212},{"name":"heatmap.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3964},{"name":"leaflet.extras.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":263},{"name":"leafletExtrasDependencies.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":464},{"name":"leaflethash.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":445},{"name":"measure-path.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1253},{"name":"omnivore.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":8485},{"name":"pulseMarkers.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3661},{"name":"search-options.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3747},{"name":"search.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":801},{"name":"sleep.Rd","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":917},{"name":"style-editor.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":863},{"name":"TileCaching.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":796},{"name":"utils.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1030},{"name":"weatherMarkers.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3768},{"name":"webglheatmap.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3689},{"name":"wms-legend.Rd","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":487}]},{"name":"NAMESPACE","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1897},{"name":"NEWS.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3218},{"name":"R","children":[{"name":"draw.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3835},{"name":"drawOptions.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":6000},{"name":"fullscreen.R","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":1120},{"name":"geodesic.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":4429},{"name":"gps.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2259},{"name":"hash.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":781},{"name":"heatmap.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7506},{"name":"jsFunctions.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3934},{"name":"leaflet.extras-package.r","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":125},{"name":"leafletDependencies.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1414},{"name":"mapUtils.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":632},{"name":"measure-path.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":2764},{"name":"omnivore.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":16315},{"name":"pulseIcon.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":6820},{"name":"search.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":6721},{"name":"sleep.R","atime":"2017-06-20T11:59:59Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:59:59Z","size":1523},{"name":"styleEditor.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1521},{"name":"TileLayer.PouchDBCached.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1144},{"name":"weatherMarkers.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":8063},{"name":"webGLHeatmap.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":7307},{"name":"wms-legend.R","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":1525}]},{"name":"README.md","atime":"2017-06-20T11:08:26Z","ctime":"2017-06-20T11:08:26Z","exe":"no","isdir":false,"mode":{},"mtime":"2017-06-20T11:08:26Z","size":3876}]},"meta":null,"legend":null,"options":{"celltext":"name","id":"id","valueField":"size","clickAction":null}},"evals":[],"jsHooks":[]}</script> | |
<script type="application/htmlwidget-sizing" data-for="htmlwidget-0e099b0dd331097d6b77">{"viewer":{"width":450,"height":350,"padding":15,"fill":true},"browser":{"width":960,"height":500,"padding":40,"fill":false}}</script> | |
</body> | |
</html> |