@macrostrat/map-interface 1.6.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/container.cjs +131 -0
- package/dist/container.cjs.map +1 -0
- package/dist/container.d.ts +17 -0
- package/dist/container.js +131 -0
- package/dist/container.js.map +1 -0
- package/dist/context-panel/index.cjs +79 -0
- package/dist/context-panel/index.cjs.map +1 -0
- package/dist/context-panel/index.d.ts +36 -0
- package/dist/context-panel/index.js +79 -0
- package/dist/context-panel/index.js.map +1 -0
- package/dist/context-panel/main.module.sass.cjs +16 -0
- package/dist/context-panel/main.module.sass.cjs.map +1 -0
- package/dist/context-panel/main.module.sass.js +16 -0
- package/dist/context-panel/main.module.sass.js.map +1 -0
- package/dist/controls.cjs +54 -0
- package/dist/controls.cjs.map +1 -0
- package/dist/controls.d.ts +3 -0
- package/dist/controls.js +54 -0
- package/dist/controls.js.map +1 -0
- package/dist/dev/index.d.ts +4 -0
- package/dist/dev/main.module.sass.cjs +30 -0
- package/dist/dev/main.module.sass.cjs.map +1 -0
- package/dist/dev/main.module.sass.js +30 -0
- package/dist/dev/main.module.sass.js.map +1 -0
- package/dist/dev/map-page.cjs +155 -0
- package/dist/dev/map-page.cjs.map +1 -0
- package/dist/dev/map-page.d.ts +26 -0
- package/dist/dev/map-page.js +155 -0
- package/dist/dev/map-page.js.map +1 -0
- package/dist/dev/tile-extent.cjs +39 -0
- package/dist/dev/tile-extent.cjs.map +1 -0
- package/dist/dev/tile-extent.d.ts +10 -0
- package/dist/dev/tile-extent.js +39 -0
- package/dist/dev/tile-extent.js.map +1 -0
- package/dist/dev/vector-tile-features.cjs +212 -0
- package/dist/dev/vector-tile-features.cjs.map +1 -0
- package/dist/dev/vector-tile-features.d.ts +29 -0
- package/dist/dev/vector-tile-features.js +212 -0
- package/dist/dev/vector-tile-features.js.map +1 -0
- package/dist/dev/xray.cjs +93 -0
- package/dist/dev/xray.cjs.map +1 -0
- package/dist/dev/xray.d.ts +41 -0
- package/dist/dev/xray.js +93 -0
- package/dist/dev/xray.js.map +1 -0
- package/dist/expansion-panel/headers.cjs +20 -0
- package/dist/expansion-panel/headers.cjs.map +1 -0
- package/dist/expansion-panel/headers.d.ts +1 -0
- package/dist/expansion-panel/headers.js +20 -0
- package/dist/expansion-panel/headers.js.map +1 -0
- package/dist/expansion-panel/index.cjs +125 -0
- package/dist/expansion-panel/index.cjs.map +1 -0
- package/dist/expansion-panel/index.d.ts +18 -0
- package/dist/expansion-panel/index.js +125 -0
- package/dist/expansion-panel/index.js.map +1 -0
- package/dist/expansion-panel/main.module.sass.cjs +27 -0
- package/dist/expansion-panel/main.module.sass.cjs.map +1 -0
- package/dist/expansion-panel/main.module.sass.js +27 -0
- package/dist/expansion-panel/main.module.sass.js.map +1 -0
- package/dist/hash-string.cjs +81 -0
- package/dist/hash-string.cjs.map +1 -0
- package/dist/hash-string.d.ts +12 -0
- package/dist/hash-string.js +81 -0
- package/dist/hash-string.js.map +1 -0
- package/dist/helpers.cjs +162 -0
- package/dist/helpers.cjs.map +1 -0
- package/dist/helpers.d.ts +34 -0
- package/dist/helpers.js +162 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.cjs +73 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/location-details/fetch.d.ts +4 -0
- package/dist/location-details/fossil-collections/collections.cjs +68 -0
- package/dist/location-details/fossil-collections/collections.cjs.map +1 -0
- package/dist/location-details/fossil-collections/collections.d.ts +3 -0
- package/dist/location-details/fossil-collections/collections.js +68 -0
- package/dist/location-details/fossil-collections/collections.js.map +1 -0
- package/dist/location-details/fossil-collections/index.cjs +13 -0
- package/dist/location-details/fossil-collections/index.cjs.map +1 -0
- package/dist/location-details/fossil-collections/index.d.ts +3 -0
- package/dist/location-details/fossil-collections/index.js +13 -0
- package/dist/location-details/fossil-collections/index.js.map +1 -0
- package/dist/location-details/fossil-collections/main.module.sass.cjs +8 -0
- package/dist/location-details/fossil-collections/main.module.sass.cjs.map +1 -0
- package/dist/location-details/fossil-collections/main.module.sass.js +8 -0
- package/dist/location-details/fossil-collections/main.module.sass.js.map +1 -0
- package/dist/location-details/index.d.ts +5 -0
- package/dist/location-details/info-blocks.cjs +81 -0
- package/dist/location-details/info-blocks.cjs.map +1 -0
- package/dist/location-details/info-blocks.d.ts +9 -0
- package/dist/location-details/info-blocks.js +81 -0
- package/dist/location-details/info-blocks.js.map +1 -0
- package/dist/location-details/info-blocks.module.sass.cjs +18 -0
- package/dist/location-details/info-blocks.module.sass.cjs.map +1 -0
- package/dist/location-details/info-blocks.module.sass.js +18 -0
- package/dist/location-details/info-blocks.module.sass.js.map +1 -0
- package/dist/location-details/macrostrat-linked.cjs +355 -0
- package/dist/location-details/macrostrat-linked.cjs.map +1 -0
- package/dist/location-details/macrostrat-linked.d.ts +1 -0
- package/dist/location-details/macrostrat-linked.js +355 -0
- package/dist/location-details/macrostrat-linked.js.map +1 -0
- package/dist/location-details/main.module.sass.cjs +20 -0
- package/dist/location-details/main.module.sass.cjs.map +1 -0
- package/dist/location-details/main.module.sass.js +20 -0
- package/dist/location-details/main.module.sass.js.map +1 -0
- package/dist/location-details/physiography.cjs +30 -0
- package/dist/location-details/physiography.cjs.map +1 -0
- package/dist/location-details/physiography.d.ts +1 -0
- package/dist/location-details/physiography.js +30 -0
- package/dist/location-details/physiography.js.map +1 -0
- package/dist/location-details/reg-strat.cjs +90 -0
- package/dist/location-details/reg-strat.cjs.map +1 -0
- package/dist/location-details/reg-strat.d.ts +6 -0
- package/dist/location-details/reg-strat.js +90 -0
- package/dist/location-details/reg-strat.js.map +1 -0
- package/dist/location-details/utils/formatting.cjs +16 -0
- package/dist/location-details/utils/formatting.cjs.map +1 -0
- package/dist/location-details/utils/formatting.d.ts +16 -0
- package/dist/location-details/utils/formatting.js +16 -0
- package/dist/location-details/utils/formatting.js.map +1 -0
- package/dist/location-details/utils/fossils.cjs +149 -0
- package/dist/location-details/utils/fossils.cjs.map +1 -0
- package/dist/location-details/utils/fossils.d.ts +3 -0
- package/dist/location-details/utils/fossils.js +149 -0
- package/dist/location-details/utils/fossils.js.map +1 -0
- package/dist/location-details/utils/index.cjs +15 -0
- package/dist/location-details/utils/index.cjs.map +1 -0
- package/dist/location-details/utils/index.d.ts +12 -0
- package/dist/location-details/utils/index.js +15 -0
- package/dist/location-details/utils/index.js.map +1 -0
- package/dist/location-details/xdd-panel/article.cjs +62 -0
- package/dist/location-details/xdd-panel/article.cjs.map +1 -0
- package/dist/location-details/xdd-panel/article.d.ts +1 -0
- package/dist/location-details/xdd-panel/article.js +62 -0
- package/dist/location-details/xdd-panel/article.js.map +1 -0
- package/dist/location-details/xdd-panel/index.cjs +69 -0
- package/dist/location-details/xdd-panel/index.cjs.map +1 -0
- package/dist/location-details/xdd-panel/index.d.ts +18 -0
- package/dist/location-details/xdd-panel/index.js +69 -0
- package/dist/location-details/xdd-panel/index.js.map +1 -0
- package/dist/location-details/xdd-panel/journal.cjs +25 -0
- package/dist/{cjs/map-interface.3ca778c5.js.map → location-details/xdd-panel/journal.cjs.map} +1 -1
- package/dist/location-details/xdd-panel/journal.d.ts +20 -0
- package/dist/location-details/xdd-panel/journal.js +25 -0
- package/dist/location-details/xdd-panel/journal.js.map +1 -0
- package/dist/location-panel/header.cjs +109 -0
- package/dist/location-panel/header.cjs.map +1 -0
- package/dist/location-panel/header.d.ts +16 -0
- package/dist/location-panel/header.js +109 -0
- package/dist/location-panel/header.js.map +1 -0
- package/dist/location-panel/index.cjs +42 -0
- package/dist/location-panel/index.cjs.map +1 -0
- package/dist/location-panel/index.d.ts +15 -0
- package/dist/location-panel/index.js +42 -0
- package/dist/location-panel/index.js.map +1 -0
- package/dist/location-panel/main.module.sass.cjs +23 -0
- package/dist/location-panel/main.module.sass.cjs.map +1 -0
- package/dist/location-panel/main.module.sass.js +23 -0
- package/dist/location-panel/main.module.sass.js.map +1 -0
- package/dist/main.module.sass.cjs +70 -0
- package/dist/main.module.sass.cjs.map +1 -0
- package/dist/main.module.sass.js +70 -0
- package/dist/main.module.sass.js.map +1 -0
- package/dist/map-interface.css +1060 -0
- package/dist/map-view.cjs +200 -0
- package/dist/map-view.cjs.map +1 -0
- package/dist/map-view.d.ts +41 -0
- package/dist/map-view.js +200 -0
- package/dist/map-view.js.map +1 -0
- package/dist/utils.cjs +35 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +35 -0
- package/dist/utils.js.map +1 -0
- package/package.json +51 -48
- package/src/context-panel/main.module.sass +3 -3
- package/src/dev/main.module.sass +1 -1
- package/src/expansion-panel/main.module.sass +4 -4
- package/src/location-details/fossil-collections/main.module.sass +1 -1
- package/src/location-details/info-blocks.module.sass +35 -0
- package/src/location-details/info-blocks.ts +1 -1
- package/src/location-details/macrostrat-linked.ts +1 -1
- package/src/location-details/{main.module.styl → main.module.sass} +21 -21
- package/src/location-panel/main.module.sass +3 -3
- package/src/main.module.sass +15 -15
- package/dist/cjs/index.js +0 -54
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/map-interface.0e252a74.js +0 -88
- package/dist/cjs/map-interface.0e252a74.js.map +0 -1
- package/dist/cjs/map-interface.11056b04.js +0 -390
- package/dist/cjs/map-interface.11056b04.js.map +0 -1
- package/dist/cjs/map-interface.12e5d744.js +0 -123
- package/dist/cjs/map-interface.12e5d744.js.map +0 -1
- package/dist/cjs/map-interface.1b386e07.css +0 -111
- package/dist/cjs/map-interface.1b386e07.css.map +0 -1
- package/dist/cjs/map-interface.1faa2839.js +0 -14
- package/dist/cjs/map-interface.1faa2839.js.map +0 -1
- package/dist/cjs/map-interface.225c9340.js +0 -71
- package/dist/cjs/map-interface.225c9340.js.map +0 -1
- package/dist/cjs/map-interface.23d5c62c.js +0 -135
- package/dist/cjs/map-interface.23d5c62c.js.map +0 -1
- package/dist/cjs/map-interface.24a1c14e.js +0 -46
- package/dist/cjs/map-interface.24a1c14e.js.map +0 -1
- package/dist/cjs/map-interface.26497065.css +0 -92
- package/dist/cjs/map-interface.26497065.css.map +0 -1
- package/dist/cjs/map-interface.31742bd3.js +0 -65
- package/dist/cjs/map-interface.31742bd3.js.map +0 -1
- package/dist/cjs/map-interface.354aaa39.js +0 -135
- package/dist/cjs/map-interface.354aaa39.js.map +0 -1
- package/dist/cjs/map-interface.368b346c.css +0 -45
- package/dist/cjs/map-interface.368b346c.css.map +0 -1
- package/dist/cjs/map-interface.3ca778c5.js +0 -57
- package/dist/cjs/map-interface.4267aa3a.js +0 -68
- package/dist/cjs/map-interface.4267aa3a.js.map +0 -1
- package/dist/cjs/map-interface.441d3b83.css +0 -69
- package/dist/cjs/map-interface.441d3b83.css.map +0 -1
- package/dist/cjs/map-interface.46d1c77b.js +0 -189
- package/dist/cjs/map-interface.46d1c77b.js.map +0 -1
- package/dist/cjs/map-interface.4a3d9662.js +0 -112
- package/dist/cjs/map-interface.4a3d9662.js.map +0 -1
- package/dist/cjs/map-interface.4a401c1f.css +0 -584
- package/dist/cjs/map-interface.4a401c1f.css.map +0 -1
- package/dist/cjs/map-interface.4c5addca.js +0 -89
- package/dist/cjs/map-interface.4c5addca.js.map +0 -1
- package/dist/cjs/map-interface.5a4f4529.js +0 -38
- package/dist/cjs/map-interface.5a4f4529.js.map +0 -1
- package/dist/cjs/map-interface.633d24e6.css +0 -22
- package/dist/cjs/map-interface.633d24e6.css.map +0 -1
- package/dist/cjs/map-interface.67001b26.js +0 -66
- package/dist/cjs/map-interface.67001b26.js.map +0 -1
- package/dist/cjs/map-interface.69b2e2a9.js +0 -25
- package/dist/cjs/map-interface.69b2e2a9.js.map +0 -1
- package/dist/cjs/map-interface.70458f75.js +0 -26
- package/dist/cjs/map-interface.70458f75.js.map +0 -1
- package/dist/cjs/map-interface.7170f35e.js +0 -65
- package/dist/cjs/map-interface.7170f35e.js.map +0 -1
- package/dist/cjs/map-interface.7509f2c1.js +0 -29
- package/dist/cjs/map-interface.7509f2c1.js.map +0 -1
- package/dist/cjs/map-interface.7bdbe4b6.js +0 -220
- package/dist/cjs/map-interface.7bdbe4b6.js.map +0 -1
- package/dist/cjs/map-interface.8d67cc21.js +0 -100
- package/dist/cjs/map-interface.8d67cc21.js.map +0 -1
- package/dist/cjs/map-interface.99a048dc.js +0 -79
- package/dist/cjs/map-interface.99a048dc.js.map +0 -1
- package/dist/cjs/map-interface.a3c2552f.js +0 -33
- package/dist/cjs/map-interface.a3c2552f.js.map +0 -1
- package/dist/cjs/map-interface.a960d638.js +0 -185
- package/dist/cjs/map-interface.a960d638.js.map +0 -1
- package/dist/cjs/map-interface.a9fe0f5d.js +0 -170
- package/dist/cjs/map-interface.a9fe0f5d.js.map +0 -1
- package/dist/cjs/map-interface.abe5fe65.js +0 -50
- package/dist/cjs/map-interface.abe5fe65.js.map +0 -1
- package/dist/cjs/map-interface.adb45df9.css +0 -191
- package/dist/cjs/map-interface.adb45df9.css.map +0 -1
- package/dist/cjs/map-interface.ae4c52a6.css +0 -52
- package/dist/cjs/map-interface.ae4c52a6.css.map +0 -1
- package/dist/cjs/map-interface.bda26b27.js +0 -134
- package/dist/cjs/map-interface.bda26b27.js.map +0 -1
- package/dist/cjs/map-interface.c5061c96.js +0 -36
- package/dist/cjs/map-interface.c5061c96.js.map +0 -1
- package/dist/cjs/map-interface.cd485bb4.js +0 -41
- package/dist/cjs/map-interface.cd485bb4.js.map +0 -1
- package/dist/cjs/map-interface.cf6c9a68.js +0 -208
- package/dist/cjs/map-interface.cf6c9a68.js.map +0 -1
- package/dist/cjs/map-interface.e74ded77.js +0 -135
- package/dist/cjs/map-interface.e74ded77.js.map +0 -1
- package/dist/cjs/map-interface.e975d65c.js +0 -23
- package/dist/cjs/map-interface.e975d65c.js.map +0 -1
- package/dist/cjs/map-interface.e9bcd5c0.js +0 -268
- package/dist/cjs/map-interface.e9bcd5c0.js.map +0 -1
- package/dist/cjs/map-interface.f8826069.js +0 -46
- package/dist/cjs/map-interface.f8826069.js.map +0 -1
- package/dist/cjs/map-interface.f9611285.js +0 -32
- package/dist/cjs/map-interface.f9611285.js.map +0 -1
- package/dist/cjs/map-interface.ffb109ef.js +0 -46
- package/dist/cjs/map-interface.ffb109ef.js.map +0 -1
- package/dist/esm/index.d.ts +0 -334
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -27
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/map-interface.01826888.js +0 -67
- package/dist/esm/map-interface.01826888.js.map +0 -1
- package/dist/esm/map-interface.021cf79b.js +0 -18
- package/dist/esm/map-interface.021cf79b.js.map +0 -1
- package/dist/esm/map-interface.065737fe.js +0 -172
- package/dist/esm/map-interface.065737fe.js.map +0 -1
- package/dist/esm/map-interface.0b1aa8f2.js +0 -81
- package/dist/esm/map-interface.0b1aa8f2.js.map +0 -1
- package/dist/esm/map-interface.1843c708.js +0 -83
- package/dist/esm/map-interface.1843c708.js.map +0 -1
- package/dist/esm/map-interface.1d38872e.js +0 -385
- package/dist/esm/map-interface.1d38872e.js.map +0 -1
- package/dist/esm/map-interface.1db44824.js +0 -24
- package/dist/esm/map-interface.1db44824.js.map +0 -1
- package/dist/esm/map-interface.22ea3934.js +0 -41
- package/dist/esm/map-interface.22ea3934.js.map +0 -1
- package/dist/esm/map-interface.2350f590.js +0 -48
- package/dist/esm/map-interface.2350f590.js.map +0 -1
- package/dist/esm/map-interface.27587c50.js +0 -126
- package/dist/esm/map-interface.27587c50.js.map +0 -1
- package/dist/esm/map-interface.2892a5fb.js +0 -178
- package/dist/esm/map-interface.2892a5fb.js.map +0 -1
- package/dist/esm/map-interface.3033c825.js +0 -40
- package/dist/esm/map-interface.3033c825.js.map +0 -1
- package/dist/esm/map-interface.3f07937e.js +0 -124
- package/dist/esm/map-interface.3f07937e.js.map +0 -1
- package/dist/esm/map-interface.473f1f2b.js +0 -28
- package/dist/esm/map-interface.473f1f2b.js.map +0 -1
- package/dist/esm/map-interface.50edfdfd.js +0 -74
- package/dist/esm/map-interface.50edfdfd.js.map +0 -1
- package/dist/esm/map-interface.557de808.js +0 -13
- package/dist/esm/map-interface.557de808.js.map +0 -1
- package/dist/esm/map-interface.578a7505.js +0 -130
- package/dist/esm/map-interface.578a7505.js.map +0 -1
- package/dist/esm/map-interface.59896194.js +0 -37
- package/dist/esm/map-interface.59896194.js.map +0 -1
- package/dist/esm/map-interface.64c62ba1.js +0 -62
- package/dist/esm/map-interface.64c62ba1.js.map +0 -1
- package/dist/esm/map-interface.672c2e0b.js +0 -182
- package/dist/esm/map-interface.672c2e0b.js.map +0 -1
- package/dist/esm/map-interface.6e65dcaf.js +0 -58
- package/dist/esm/map-interface.6e65dcaf.js.map +0 -1
- package/dist/esm/map-interface.70d6a7ff.js +0 -16
- package/dist/esm/map-interface.70d6a7ff.js.map +0 -1
- package/dist/esm/map-interface.72b1bfba.js +0 -94
- package/dist/esm/map-interface.72b1bfba.js.map +0 -1
- package/dist/esm/map-interface.786d6e58.js +0 -258
- package/dist/esm/map-interface.786d6e58.js.map +0 -1
- package/dist/esm/map-interface.7ea8a1e0.js +0 -40
- package/dist/esm/map-interface.7ea8a1e0.js.map +0 -1
- package/dist/esm/map-interface.9152234b.js +0 -114
- package/dist/esm/map-interface.9152234b.js.map +0 -1
- package/dist/esm/map-interface.957e414c.js +0 -52
- package/dist/esm/map-interface.957e414c.js.map +0 -1
- package/dist/esm/map-interface.a03a7a23.js +0 -16
- package/dist/esm/map-interface.a03a7a23.js.map +0 -1
- package/dist/esm/map-interface.a8c94450.js +0 -55
- package/dist/esm/map-interface.a8c94450.js.map +0 -1
- package/dist/esm/map-interface.bdef07d2.js +0 -34
- package/dist/esm/map-interface.bdef07d2.js.map +0 -1
- package/dist/esm/map-interface.c2a61cbf.js +0 -62
- package/dist/esm/map-interface.c2a61cbf.js.map +0 -1
- package/dist/esm/map-interface.c52c2fec.js +0 -130
- package/dist/esm/map-interface.c52c2fec.js.map +0 -1
- package/dist/esm/map-interface.c99b53b6.js +0 -43
- package/dist/esm/map-interface.c99b53b6.js.map +0 -1
- package/dist/esm/map-interface.ca1ee406.js +0 -214
- package/dist/esm/map-interface.ca1ee406.js.map +0 -1
- package/dist/esm/map-interface.e418553b.js +0 -107
- package/dist/esm/map-interface.e418553b.js.map +0 -1
- package/dist/esm/map-interface.e63d862d.js +0 -15
- package/dist/esm/map-interface.e63d862d.js.map +0 -1
- package/dist/esm/map-interface.f7b8bdb7.js +0 -192
- package/dist/esm/map-interface.f7b8bdb7.js.map +0 -1
- package/dist/node/index.js +0 -2
- package/dist/node/index.js.map +0 -1
- package/dist/node/map-interface.07882229.css +0 -2
- package/dist/node/map-interface.07882229.css.map +0 -1
- package/dist/node/map-interface.0e71fd95.js +0 -2
- package/dist/node/map-interface.0e71fd95.js.map +0 -1
- package/dist/node/map-interface.10f5ef81.js +0 -2
- package/dist/node/map-interface.10f5ef81.js.map +0 -1
- package/dist/node/map-interface.1a5eecac.js +0 -2
- package/dist/node/map-interface.1a5eecac.js.map +0 -1
- package/dist/node/map-interface.1be49df8.css +0 -2
- package/dist/node/map-interface.1be49df8.css.map +0 -1
- package/dist/node/map-interface.254e457a.js +0 -2
- package/dist/node/map-interface.254e457a.js.map +0 -1
- package/dist/node/map-interface.2d12b35c.js +0 -2
- package/dist/node/map-interface.2d12b35c.js.map +0 -1
- package/dist/node/map-interface.33b7734a.js +0 -2
- package/dist/node/map-interface.33b7734a.js.map +0 -1
- package/dist/node/map-interface.3ea55e0c.js +0 -2
- package/dist/node/map-interface.3ea55e0c.js.map +0 -1
- package/dist/node/map-interface.41e916d1.js +0 -2
- package/dist/node/map-interface.41e916d1.js.map +0 -1
- package/dist/node/map-interface.42ef081d.css +0 -2
- package/dist/node/map-interface.42ef081d.css.map +0 -1
- package/dist/node/map-interface.47b81f95.js +0 -2
- package/dist/node/map-interface.47b81f95.js.map +0 -1
- package/dist/node/map-interface.4b4f8fdf.js +0 -2
- package/dist/node/map-interface.4b4f8fdf.js.map +0 -1
- package/dist/node/map-interface.4df6e2c7.js +0 -2
- package/dist/node/map-interface.4df6e2c7.js.map +0 -1
- package/dist/node/map-interface.5736d6f8.js +0 -2
- package/dist/node/map-interface.5736d6f8.js.map +0 -1
- package/dist/node/map-interface.593e09ed.js +0 -2
- package/dist/node/map-interface.593e09ed.js.map +0 -1
- package/dist/node/map-interface.62b147ce.js +0 -2
- package/dist/node/map-interface.62b147ce.js.map +0 -1
- package/dist/node/map-interface.6314eef1.js +0 -2
- package/dist/node/map-interface.6314eef1.js.map +0 -1
- package/dist/node/map-interface.713361a4.js +0 -2
- package/dist/node/map-interface.713361a4.js.map +0 -1
- package/dist/node/map-interface.722387fb.js +0 -2
- package/dist/node/map-interface.722387fb.js.map +0 -1
- package/dist/node/map-interface.78e05655.js +0 -2
- package/dist/node/map-interface.78e05655.js.map +0 -1
- package/dist/node/map-interface.7aaa58c9.js +0 -2
- package/dist/node/map-interface.7aaa58c9.js.map +0 -1
- package/dist/node/map-interface.83fa8028.js +0 -2
- package/dist/node/map-interface.83fa8028.js.map +0 -1
- package/dist/node/map-interface.9317d050.js +0 -2
- package/dist/node/map-interface.9317d050.js.map +0 -1
- package/dist/node/map-interface.971af4bc.js +0 -2
- package/dist/node/map-interface.971af4bc.js.map +0 -1
- package/dist/node/map-interface.9824c03a.js +0 -2
- package/dist/node/map-interface.9824c03a.js.map +0 -1
- package/dist/node/map-interface.992dea73.js +0 -2
- package/dist/node/map-interface.992dea73.js.map +0 -1
- package/dist/node/map-interface.a1252092.css +0 -2
- package/dist/node/map-interface.a1252092.css.map +0 -1
- package/dist/node/map-interface.a8a16138.js +0 -2
- package/dist/node/map-interface.a8a16138.js.map +0 -1
- package/dist/node/map-interface.ae3d2d83.js +0 -2
- package/dist/node/map-interface.ae3d2d83.js.map +0 -1
- package/dist/node/map-interface.b0e1ad1b.js +0 -2
- package/dist/node/map-interface.b0e1ad1b.js.map +0 -1
- package/dist/node/map-interface.b14f08e8.js +0 -2
- package/dist/node/map-interface.b14f08e8.js.map +0 -1
- package/dist/node/map-interface.b33fab5e.js +0 -2
- package/dist/node/map-interface.b33fab5e.js.map +0 -1
- package/dist/node/map-interface.bd78832e.css +0 -2
- package/dist/node/map-interface.bd78832e.css.map +0 -1
- package/dist/node/map-interface.bf86da7c.js +0 -2
- package/dist/node/map-interface.bf86da7c.js.map +0 -1
- package/dist/node/map-interface.c5c0ad06.js +0 -2
- package/dist/node/map-interface.c5c0ad06.js.map +0 -1
- package/dist/node/map-interface.d22d91e9.css +0 -2
- package/dist/node/map-interface.d22d91e9.css.map +0 -1
- package/dist/node/map-interface.d2fce135.css +0 -2
- package/dist/node/map-interface.d2fce135.css.map +0 -1
- package/dist/node/map-interface.d5eba479.css +0 -2
- package/dist/node/map-interface.d5eba479.css.map +0 -1
- package/dist/node/map-interface.e7598785.js +0 -2
- package/dist/node/map-interface.e7598785.js.map +0 -1
- package/dist/node/map-interface.ed6b5586.js +0 -2
- package/dist/node/map-interface.ed6b5586.js.map +0 -1
- package/dist/node/map-interface.f13f7aeb.js +0 -2
- package/dist/node/map-interface.f13f7aeb.js.map +0 -1
- package/dist/node/map-interface.f413c362.js +0 -2
- package/dist/node/map-interface.f413c362.js.map +0 -1
- package/dist/node/map-interface.f4d2a5eb.js +0 -2
- package/dist/node/map-interface.f4d2a5eb.js.map +0 -1
- package/dist/node/map-interface.fdd35e74.js +0 -2
- package/dist/node/map-interface.fdd35e74.js.map +0 -1
- package/src/location-details/info-blocks.module.styl +0 -39
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
var $33088e8384af337c$exports = require("./map-interface.abe5fe65.js");
|
|
2
|
-
require("./map-interface.26497065.css");
|
|
3
|
-
var $750d69d73bfbdc9a$exports = require("./map-interface.354aaa39.js");
|
|
4
|
-
var $dHcMG$blueprintjscore = require("@blueprintjs/core");
|
|
5
|
-
var $dHcMG$macrostratmapboxreact = require("@macrostrat/mapbox-react");
|
|
6
|
-
var $dHcMG$macrostrathyper = require("@macrostrat/hyper");
|
|
7
|
-
var $dHcMG$react = require("react");
|
|
8
|
-
var $dHcMG$macrostratuicomponents = require("@macrostrat/ui-components");
|
|
9
|
-
var $dHcMG$d3array = require("d3-array");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function $parcel$interopDefault(a) {
|
|
13
|
-
return a && a.__esModule ? a.default : a;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function $parcel$export(e, n, v, s) {
|
|
17
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
$parcel$export(module.exports, "FeatureProperties", () => $db14eb7a5c07abdb$export$2906e7f4b228efe9);
|
|
21
|
-
$parcel$export(module.exports, "FeatureRecord", () => $db14eb7a5c07abdb$export$dc87b4d46cea200d);
|
|
22
|
-
$parcel$export(module.exports, "FeatureSelectionHandler", () => $db14eb7a5c07abdb$export$214daccdda0f4ac6);
|
|
23
|
-
$parcel$export(module.exports, "Features", () => $db14eb7a5c07abdb$export$617d79dae526d2cf);
|
|
24
|
-
$parcel$export(module.exports, "TileInfo", () => $db14eb7a5c07abdb$export$43c75dec9d0b96c);
|
|
25
|
-
$parcel$export(module.exports, "FeaturePanel", () => $db14eb7a5c07abdb$export$43277c51a01761c1);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const $db14eb7a5c07abdb$var$h = (0, ($parcel$interopDefault($dHcMG$macrostrathyper))).styled((0, ($parcel$interopDefault($33088e8384af337c$exports))));
|
|
35
|
-
function $db14eb7a5c07abdb$export$2906e7f4b228efe9({ data: data, ...rest }) {
|
|
36
|
-
// Instead of managing hover state with CSS, we use a state variable,
|
|
37
|
-
// so that the button re-renders when the state changes
|
|
38
|
-
const [showControls, setShowControls] = (0, $dHcMG$react.useState)(false);
|
|
39
|
-
const onMouseEnter = (0, $dHcMG$react.useCallback)(()=>setShowControls(true), []);
|
|
40
|
-
const onMouseLeave = (0, $dHcMG$react.useCallback)(()=>setShowControls(false), []);
|
|
41
|
-
return $db14eb7a5c07abdb$var$h("div.feature-properties", {
|
|
42
|
-
onMouseEnter: onMouseEnter,
|
|
43
|
-
onMouseLeave: onMouseLeave
|
|
44
|
-
}, [
|
|
45
|
-
$db14eb7a5c07abdb$var$h.if(showControls)("div.controls", $db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$CopyJSONButton, {
|
|
46
|
-
data: data
|
|
47
|
-
})),
|
|
48
|
-
$db14eb7a5c07abdb$var$h((0, $dHcMG$macrostratuicomponents.JSONView), {
|
|
49
|
-
data: data,
|
|
50
|
-
hideRoot: true,
|
|
51
|
-
...rest
|
|
52
|
-
})
|
|
53
|
-
]);
|
|
54
|
-
}
|
|
55
|
-
function $db14eb7a5c07abdb$export$dc87b4d46cea200d({ feature: feature }) {
|
|
56
|
-
const props = feature.properties;
|
|
57
|
-
return $db14eb7a5c07abdb$var$h("div.feature-record", [
|
|
58
|
-
$db14eb7a5c07abdb$var$h.if(Object.keys(props).length > 0)($db14eb7a5c07abdb$export$2906e7f4b228efe9, {
|
|
59
|
-
data: props
|
|
60
|
-
})
|
|
61
|
-
]);
|
|
62
|
-
}
|
|
63
|
-
function $db14eb7a5c07abdb$var$CopyJSONButton({ data: data }) {
|
|
64
|
-
const [copied, setCopied] = (0, $dHcMG$react.useState)(false);
|
|
65
|
-
return $db14eb7a5c07abdb$var$h((0, $dHcMG$blueprintjscore.Button), {
|
|
66
|
-
icon: copied ? "tick" : "clipboard",
|
|
67
|
-
intent: copied ? (0, $dHcMG$blueprintjscore.Intent).SUCCESS : (0, $dHcMG$blueprintjscore.Intent).NONE,
|
|
68
|
-
minimal: true,
|
|
69
|
-
small: true,
|
|
70
|
-
onClick () {
|
|
71
|
-
navigator.clipboard.writeText(JSON.stringify(data, null, 2));
|
|
72
|
-
setCopied(true);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedLocation, setFeatures: setFeatures, radius: radius = 2 }) {
|
|
77
|
-
const mapRef = (0, $dHcMG$macrostratmapboxreact.useMapRef)();
|
|
78
|
-
const isLoading = (0, $dHcMG$macrostratmapboxreact.useMapStatus)((s)=>s.isLoading);
|
|
79
|
-
const isInitialized = (0, $dHcMG$macrostratmapboxreact.useMapStatus)((s)=>s.isInitialized);
|
|
80
|
-
const prevLocation = (0, $dHcMG$react.useRef)(null);
|
|
81
|
-
const prevFeatures = (0, $dHcMG$react.useRef)([]);
|
|
82
|
-
(0, $dHcMG$react.useEffect)(()=>{
|
|
83
|
-
const map = mapRef?.current;
|
|
84
|
-
if (map == null) return;
|
|
85
|
-
if (selectedLocation == null) {
|
|
86
|
-
setFeatures(null);
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (!isInitialized) return;
|
|
90
|
-
const hasPreviouslyLoadedFeatures = prevFeatures.current.length > 0;
|
|
91
|
-
const locationMemo = JSON.stringify(selectedLocation);
|
|
92
|
-
if (locationMemo == prevLocation.current && hasPreviouslyLoadedFeatures) return;
|
|
93
|
-
prevLocation.current = locationMemo;
|
|
94
|
-
// Don't update if the location hasn't changed
|
|
95
|
-
//if (selectedLocation == prevLocation) return;
|
|
96
|
-
const r = radius;
|
|
97
|
-
const pt = map.project(selectedLocation);
|
|
98
|
-
const bbox = [
|
|
99
|
-
[
|
|
100
|
-
pt.x - r,
|
|
101
|
-
pt.y - r
|
|
102
|
-
],
|
|
103
|
-
[
|
|
104
|
-
pt.x + r,
|
|
105
|
-
pt.y + r
|
|
106
|
-
]
|
|
107
|
-
];
|
|
108
|
-
const features = map.queryRenderedFeatures(bbox);
|
|
109
|
-
prevFeatures.current = features ?? [];
|
|
110
|
-
setFeatures(features);
|
|
111
|
-
}, [
|
|
112
|
-
isInitialized,
|
|
113
|
-
selectedLocation,
|
|
114
|
-
isLoading
|
|
115
|
-
]);
|
|
116
|
-
return null;
|
|
117
|
-
}
|
|
118
|
-
function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature }) {
|
|
119
|
-
return $db14eb7a5c07abdb$var$h("div.feature-header", [
|
|
120
|
-
$db14eb7a5c07abdb$var$h("h3", [
|
|
121
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
122
|
-
label: "Source",
|
|
123
|
-
value: feature.source
|
|
124
|
-
}),
|
|
125
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
126
|
-
label: "Source layer",
|
|
127
|
-
value: feature.sourceLayer
|
|
128
|
-
})
|
|
129
|
-
])
|
|
130
|
-
]);
|
|
131
|
-
}
|
|
132
|
-
function $db14eb7a5c07abdb$var$KeyValue({ label: label, value: value }) {
|
|
133
|
-
return $db14eb7a5c07abdb$var$h("span.key-value", [
|
|
134
|
-
$db14eb7a5c07abdb$var$h("span.key", label),
|
|
135
|
-
$db14eb7a5c07abdb$var$h("code.value", value)
|
|
136
|
-
]);
|
|
137
|
-
}
|
|
138
|
-
function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features, sourceID: sourceID }) {
|
|
139
|
-
const map = (0, $dHcMG$macrostratmapboxreact.useMapRef)();
|
|
140
|
-
if (map?.current == null) return null;
|
|
141
|
-
const [isLoaded, setIsLoaded] = (0, $dHcMG$react.useState)(false);
|
|
142
|
-
const sourceFeatures = features.filter((d)=>d.source == "burwell");
|
|
143
|
-
(0, $dHcMG$react.useEffect)(()=>{
|
|
144
|
-
if (sourceFeatures.length > 0) {
|
|
145
|
-
setIsLoaded(true);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const isLoaded = map.current.isSourceLoaded(sourceID);
|
|
149
|
-
setIsLoaded(isLoaded);
|
|
150
|
-
if (!isLoaded) map.current.once("sourcedata", (e)=>{
|
|
151
|
-
if (e.sourceId == sourceID) setIsLoaded(true);
|
|
152
|
-
});
|
|
153
|
-
}, [
|
|
154
|
-
map.current,
|
|
155
|
-
sourceID,
|
|
156
|
-
sourceFeatures.length
|
|
157
|
-
]);
|
|
158
|
-
if (!isLoaded) return $db14eb7a5c07abdb$var$h((0, $dHcMG$blueprintjscore.Spinner));
|
|
159
|
-
return $db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$617d79dae526d2cf, {
|
|
160
|
-
features: sourceFeatures
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature, showExtent: showExtent, setShowExtent: setShowExtent }) {
|
|
164
|
-
if (feature == null) return null;
|
|
165
|
-
const size = feature._vectorTileFeature._pbf.length;
|
|
166
|
-
return $db14eb7a5c07abdb$var$h("div.tile-info", [
|
|
167
|
-
$db14eb7a5c07abdb$var$h("h3", "Tile"),
|
|
168
|
-
$db14eb7a5c07abdb$var$h("div.tile-index", [
|
|
169
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
170
|
-
label: "x",
|
|
171
|
-
value: feature._x
|
|
172
|
-
}),
|
|
173
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
174
|
-
label: "y",
|
|
175
|
-
value: feature._y
|
|
176
|
-
}),
|
|
177
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
178
|
-
label: "z",
|
|
179
|
-
value: feature._z
|
|
180
|
-
})
|
|
181
|
-
]),
|
|
182
|
-
$db14eb7a5c07abdb$var$h("div.spacer"),
|
|
183
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
184
|
-
label: "Size",
|
|
185
|
-
value: $db14eb7a5c07abdb$var$formatSize(size)
|
|
186
|
-
}),
|
|
187
|
-
$db14eb7a5c07abdb$var$h((0, $dHcMG$blueprintjscore.Switch), {
|
|
188
|
-
label: "Show extent",
|
|
189
|
-
alignIndicator: "right",
|
|
190
|
-
checked: showExtent,
|
|
191
|
-
onChange () {
|
|
192
|
-
setShowExtent(!showExtent);
|
|
193
|
-
}
|
|
194
|
-
})
|
|
195
|
-
]);
|
|
196
|
-
}
|
|
197
|
-
function $db14eb7a5c07abdb$var$formatSize(size) {
|
|
198
|
-
if (size > 1000000) return $db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$UnitNumber, {
|
|
199
|
-
value: size / 1000000,
|
|
200
|
-
unit: "Mb"
|
|
201
|
-
});
|
|
202
|
-
if (size > 1000) return $db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$UnitNumber, {
|
|
203
|
-
value: size / 1000,
|
|
204
|
-
unit: "Kb"
|
|
205
|
-
});
|
|
206
|
-
return `${size} bytes`;
|
|
207
|
-
}
|
|
208
|
-
function $db14eb7a5c07abdb$var$UnitNumber({ value: value, unit: unit, precision: precision = 1 }) {
|
|
209
|
-
return $db14eb7a5c07abdb$var$h("span.unit-number", [
|
|
210
|
-
$db14eb7a5c07abdb$var$h("span.number", value.toFixed(precision)),
|
|
211
|
-
$db14eb7a5c07abdb$var$h("span.unit", unit)
|
|
212
|
-
]);
|
|
213
|
-
}
|
|
214
|
-
function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features, focusedSource: focusedSource = null, focusedSourceTitle: focusedSourceTitle = null }) {
|
|
215
|
-
if (features == null) return null;
|
|
216
|
-
let focusedSourcePanel = null;
|
|
217
|
-
let filteredFeatures = features;
|
|
218
|
-
let title = "Features";
|
|
219
|
-
if (focusedSource != null) {
|
|
220
|
-
title = "Basemap features";
|
|
221
|
-
focusedSourcePanel = $db14eb7a5c07abdb$var$h((0, $750d69d73bfbdc9a$exports.ExpansionPanel), {
|
|
222
|
-
title: focusedSourceTitle ?? "Macrostrat features",
|
|
223
|
-
className: "macrostrat-features",
|
|
224
|
-
expanded: true
|
|
225
|
-
}, [
|
|
226
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$LoadingAwareFeatureSet, {
|
|
227
|
-
features: features,
|
|
228
|
-
sourceID: focusedSource
|
|
229
|
-
})
|
|
230
|
-
]);
|
|
231
|
-
filteredFeatures = features.filter((d)=>d.source != focusedSource);
|
|
232
|
-
}
|
|
233
|
-
return $db14eb7a5c07abdb$var$h("div.feature-panel", [
|
|
234
|
-
focusedSourcePanel,
|
|
235
|
-
$db14eb7a5c07abdb$var$h((0, $750d69d73bfbdc9a$exports.ExpansionPanel), {
|
|
236
|
-
title: title,
|
|
237
|
-
className: "basemap-features",
|
|
238
|
-
expanded: focusedSource == null
|
|
239
|
-
}, [
|
|
240
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$FeatureGroups, {
|
|
241
|
-
features: filteredFeatures
|
|
242
|
-
})
|
|
243
|
-
])
|
|
244
|
-
]);
|
|
245
|
-
}
|
|
246
|
-
function $db14eb7a5c07abdb$var$FeatureGroups({ features: features }) {
|
|
247
|
-
/** Group features by source and sourceLayer */ if (features == null) return null;
|
|
248
|
-
const groups = (0, $dHcMG$d3array.group)(features, (d)=>`${d.source} - ${d.sourceLayer}`);
|
|
249
|
-
return $db14eb7a5c07abdb$var$h("div.feature-groups", Array.from(groups).map(([key, features])=>{
|
|
250
|
-
return $db14eb7a5c07abdb$var$h("div.feature-group", [
|
|
251
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$FeatureHeader, {
|
|
252
|
-
feature: features[0]
|
|
253
|
-
}),
|
|
254
|
-
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$617d79dae526d2cf, {
|
|
255
|
-
features: features
|
|
256
|
-
})
|
|
257
|
-
]);
|
|
258
|
-
}));
|
|
259
|
-
}
|
|
260
|
-
function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features }) {
|
|
261
|
-
return $db14eb7a5c07abdb$var$h("div.features", features.map((feature, i)=>$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$dc87b4d46cea200d, {
|
|
262
|
-
key: i,
|
|
263
|
-
feature: feature
|
|
264
|
-
})));
|
|
265
|
-
}
|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;QAAK,GACxE;YACE,wBAAE,qCAAe;gBACf,UAAU;YACZ;SACD;KAEJ;AACH;AAEA,SAAS,oCAAc,YAAE,QAAQ,EAAE;IACjC,6CAA6C,GAC7C,IAAI,YAAY,MAAM,OAAO;IAE7B,MAAM,SAAS,CAAA,GAAA,oBAAI,EAAE,UAAU,CAAC,IAAW,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE;IAE3E,OAAO,wBACL,sBACA,MAAM,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS;QACrC,OAAO,wBAAE,qBAAqB;YAC5B,wBAAE,qCAAe;gBAAE,SAAS,QAAQ,CAAC,EAAE;YAAC;YACxC,wBAAE,2CAAU;0BAAE;YAAS;SACxB;IACH;AAEJ;AAEO,SAAS,0CAAS,YAAE,QAAQ,EAAE;IACnC,OAAO,wBACL,gBACA,SAAS,GAAG,CAAC,CAAC,SAAS,IAAM,wBAAE,2CAAe;YAAE,KAAK;qBAAG;QAAQ;AAEpE","sources":["packages/map-interface/src/dev/vector-tile-features.ts"],"sourcesContent":["import { Spinner, Switch, Button, Intent } from \"@blueprintjs/core\";\nimport { useMapRef, useMapStatus } from \"@macrostrat/mapbox-react\";\nimport mapboxgl from \"mapbox-gl\";\nimport hyper from \"@macrostrat/hyper\";\nimport styles from \"./main.module.sass\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { JSONView } from \"@macrostrat/ui-components\";\nimport { group } from \"d3-array\";\nimport { ExpansionPanel } from \"../expansion-panel\";\n\nconst h = hyper.styled(styles);\n\nexport function FeatureProperties({ data, ...rest }) {\n // Instead of managing hover state with CSS, we use a state variable,\n // so that the button re-renders when the state changes\n const [showControls, setShowControls] = useState(false);\n const onMouseEnter = useCallback(() => setShowControls(true), []);\n const onMouseLeave = useCallback(() => setShowControls(false), []);\n\n return h(\"div.feature-properties\", { onMouseEnter, onMouseLeave }, [\n h.if(showControls)(\"div.controls\", h(CopyJSONButton, { data })),\n h(JSONView, {\n data,\n hideRoot: true,\n ...rest,\n }),\n ]);\n}\n\nexport function FeatureRecord({ feature }) {\n const props = feature.properties;\n return h(\"div.feature-record\", [\n h.if(Object.keys(props).length > 0)(FeatureProperties, { data: props }),\n ]);\n}\n\nfunction CopyJSONButton({ data }) {\n const [copied, setCopied] = useState(false);\n return h(Button, {\n icon: copied ? \"tick\" : \"clipboard\",\n intent: copied ? Intent.SUCCESS : Intent.NONE,\n minimal: true,\n small: true,\n onClick() {\n navigator.clipboard.writeText(JSON.stringify(data, null, 2));\n setCopied(true);\n },\n });\n}\n\n/** This component wraps queryRenderedFeatures to get features at a given location */\nexport function FeatureSelectionHandler({\n selectedLocation,\n setFeatures,\n radius = 2,\n}: {\n selectedLocation: mapboxgl.LngLat;\n setFeatures: (features: mapboxgl.MapboxGeoJSONFeature[]) => void;\n radius?: number;\n}) {\n const mapRef = useMapRef();\n const isLoading = useMapStatus((s) => s.isLoading);\n const isInitialized = useMapStatus((s) => s.isInitialized);\n const prevLocation = useRef(null);\n const prevFeatures = useRef([]);\n\n useEffect(() => {\n const map = mapRef?.current;\n if (map == null) return;\n if (selectedLocation == null) {\n setFeatures(null);\n return;\n }\n\n if (!isInitialized) return;\n\n const hasPreviouslyLoadedFeatures = prevFeatures.current.length > 0;\n\n const locationMemo = JSON.stringify(selectedLocation);\n if (locationMemo == prevLocation.current && hasPreviouslyLoadedFeatures)\n return;\n\n prevLocation.current = locationMemo;\n\n // Don't update if the location hasn't changed\n //if (selectedLocation == prevLocation) return;\n\n const r = radius;\n const pt = map.project(selectedLocation);\n\n const bbox: [mapboxgl.PointLike, mapboxgl.PointLike] = [\n [pt.x - r, pt.y - r],\n [pt.x + r, pt.y + r],\n ];\n const features = map.queryRenderedFeatures(bbox);\n prevFeatures.current = features ?? [];\n setFeatures(features);\n }, [isInitialized, selectedLocation, isLoading]);\n\n return null;\n}\n\nfunction FeatureHeader({ feature }) {\n return h(\"div.feature-header\", [\n h(\"h3\", [\n h(KeyValue, { label: \"Source\", value: feature.source }),\n h(KeyValue, { label: \"Source layer\", value: feature.sourceLayer }),\n ]),\n ]);\n}\n\nfunction KeyValue({ label, value }) {\n return h(\"span.key-value\", [h(\"span.key\", label), h(\"code.value\", value)]);\n}\n\nfunction LoadingAwareFeatureSet({ features, sourceID }) {\n const map = useMapRef();\n if (map?.current == null) return null;\n const [isLoaded, setIsLoaded] = useState(false);\n\n const sourceFeatures = features.filter((d) => d.source == \"burwell\");\n\n useEffect(() => {\n if (sourceFeatures.length > 0) {\n setIsLoaded(true);\n return;\n }\n\n const isLoaded = map.current.isSourceLoaded(sourceID);\n setIsLoaded(isLoaded);\n if (!isLoaded) {\n map.current.once(\"sourcedata\", (e) => {\n if (e.sourceId == sourceID) {\n setIsLoaded(true);\n }\n });\n }\n }, [map.current, sourceID, sourceFeatures.length]);\n\n if (!isLoaded) return h(Spinner);\n return h(Features, { features: sourceFeatures });\n}\n\nexport function TileInfo({ feature, showExtent, setShowExtent }) {\n if (feature == null) return null;\n const size = feature._vectorTileFeature._pbf.length;\n return h(\"div.tile-info\", [\n h(\"h3\", \"Tile\"),\n h(\"div.tile-index\", [\n h(KeyValue, { label: \"x\", value: feature._x }),\n h(KeyValue, { label: \"y\", value: feature._y }),\n h(KeyValue, { label: \"z\", value: feature._z }),\n ]),\n h(\"div.spacer\"),\n h(KeyValue, { label: \"Size\", value: formatSize(size) }),\n h(Switch, {\n label: \"Show extent\",\n alignIndicator: \"right\",\n checked: showExtent,\n onChange() {\n setShowExtent(!showExtent);\n },\n }),\n ]);\n}\n\nfunction formatSize(size: number) {\n if (size > 1000000)\n return h(UnitNumber, { value: size / 1000000, unit: \"Mb\" });\n if (size > 1000) return h(UnitNumber, { value: size / 1000, unit: \"Kb\" });\n return `${size} bytes`;\n}\n\nfunction UnitNumber({ value, unit, precision = 1 }) {\n return h(\"span.unit-number\", [\n h(\"span.number\", value.toFixed(precision)),\n h(\"span.unit\", unit),\n ]);\n}\n\nexport function FeaturePanel({\n features,\n focusedSource = null,\n focusedSourceTitle = null,\n}) {\n if (features == null) return null;\n\n let focusedSourcePanel = null;\n let filteredFeatures = features;\n let title = \"Features\";\n\n if (focusedSource != null) {\n title = \"Basemap features\";\n focusedSourcePanel = h(\n ExpansionPanel,\n {\n title: focusedSourceTitle ?? \"Macrostrat features\",\n className: \"macrostrat-features\",\n expanded: true,\n },\n [\n h(LoadingAwareFeatureSet, {\n features,\n sourceID: focusedSource,\n }),\n ],\n );\n filteredFeatures = features.filter((d) => d.source != focusedSource);\n }\n\n return h(\"div.feature-panel\", [\n focusedSourcePanel,\n h(\n ExpansionPanel,\n { title, className: \"basemap-features\", expanded: focusedSource == null },\n [\n h(FeatureGroups, {\n features: filteredFeatures,\n }),\n ],\n ),\n ]);\n}\n\nfunction FeatureGroups({ features }) {\n /** Group features by source and sourceLayer */\n if (features == null) return null;\n\n const groups = group(features, (d: any) => `${d.source} - ${d.sourceLayer}`);\n\n return h(\n \"div.feature-groups\",\n Array.from(groups).map(([key, features]) => {\n return h(\"div.feature-group\", [\n h(FeatureHeader, { feature: features[0] }),\n h(Features, { features }),\n ]);\n }),\n );\n}\n\nexport function Features({ features }) {\n return h(\n \"div.features\",\n features.map((feature, i) => h(FeatureRecord, { key: i, feature })),\n );\n}\n"],"names":[],"version":3,"file":"map-interface.e9bcd5c0.js.map"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var $eRYHH$macrostratmapboxreact = require("@macrostrat/mapbox-react");
|
|
2
|
-
var $eRYHH$mapboxtilebelt = require("@mapbox/tilebelt");
|
|
3
|
-
var $eRYHH$macrostratmapboxutils = require("@macrostrat/mapbox-utils");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function $parcel$export(e, n, v, s) {
|
|
7
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
$parcel$export(module.exports, "TileExtentLayer", () => $abbe8d0af34cbbed$export$86c09739b12f23cd);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile, color: color = "red" }) {
|
|
15
|
-
(0, $eRYHH$macrostratmapboxreact.useMapStyleOperator)((map)=>{
|
|
16
|
-
const style = map.getStyle();
|
|
17
|
-
if (style.layers == null) return;
|
|
18
|
-
style.layers = style.layers.filter((l)=>l.id != "tile-extent");
|
|
19
|
-
if (tile == null) return map.setStyle(style);
|
|
20
|
-
const { x: x, y: y, z: z } = tile;
|
|
21
|
-
const extent = (0, $eRYHH$mapboxtilebelt.tileToGeoJSON)([
|
|
22
|
-
x,
|
|
23
|
-
y,
|
|
24
|
-
z
|
|
25
|
-
]);
|
|
26
|
-
(0, $eRYHH$macrostratmapboxutils.setGeoJSON)(map, "tile-extent", extent);
|
|
27
|
-
if (map.getLayer("tile-extent") != null) // If the layer already exists, we can just update it
|
|
28
|
-
map.removeLayer("tile-extent");
|
|
29
|
-
map.addLayer({
|
|
30
|
-
id: "tile-extent",
|
|
31
|
-
type: "line",
|
|
32
|
-
source: "tile-extent",
|
|
33
|
-
paint: {
|
|
34
|
-
"line-color": color,
|
|
35
|
-
"line-width": 2
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}, [
|
|
39
|
-
color,
|
|
40
|
-
tile
|
|
41
|
-
]);
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=map-interface.f8826069.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAMO,SAAS,0CAAgB,QAC9B,IAAI,SACJ,QAAQ,OAIT;IACC,CAAA,GAAA,gDAAkB,EAChB,CAAC;QACC,MAAM,QAAQ,IAAI,QAAQ;QAC1B,IAAI,MAAM,MAAM,IAAI,MAAM;QAC1B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,IAAM,EAAE,EAAE,IAAI;QAClD,IAAI,QAAQ,MACV,OAAO,IAAI,QAAQ,CAAC;QAEtB,MAAM,KAAE,CAAC,KAAE,CAAC,KAAE,CAAC,EAAE,GAAG;QACpB,MAAM,SAAS,CAAA,GAAA,mCAAY,EAAE;YAAC;YAAG;YAAG;SAAE;QAEtC,CAAA,GAAA,uCAAS,EAAE,KAAK,eAAe;QAE/B,IAAI,IAAI,QAAQ,CAAC,kBAAkB,MACjC,qDAAqD;QACrD,IAAI,WAAW,CAAC;QAGlB,IAAI,QAAQ,CAAC;YACX,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,OAAO;gBACL,cAAc;gBACd,cAAc;YAChB;QACF;IACF,GACA;QAAC;QAAO;KAAK;IAEf,OAAO;AACT","sources":["packages/map-interface/src/dev/tile-extent.ts"],"sourcesContent":["import { useMapStyleOperator } from \"@macrostrat/mapbox-react\";\nimport { tileToGeoJSON } from \"@mapbox/tilebelt\";\nimport { setGeoJSON } from \"@macrostrat/mapbox-utils\";\n\ntype TileIndex = { x: number; y: number; z: number };\n\nexport function TileExtentLayer({\n tile,\n color = \"red\",\n}: {\n tile: TileIndex | null;\n color?: string;\n}) {\n useMapStyleOperator(\n (map) => {\n const style = map.getStyle();\n if (style.layers == null) return;\n style.layers = style.layers.filter((l) => l.id != \"tile-extent\");\n if (tile == null) {\n return map.setStyle(style);\n }\n const { x, y, z } = tile;\n const extent = tileToGeoJSON([x, y, z]);\n\n setGeoJSON(map, \"tile-extent\", extent as any);\n\n if (map.getLayer(\"tile-extent\") != null) {\n // If the layer already exists, we can just update it\n map.removeLayer(\"tile-extent\");\n }\n\n map.addLayer({\n id: \"tile-extent\",\n type: \"line\",\n source: \"tile-extent\",\n paint: {\n \"line-color\": color,\n \"line-width\": 2,\n },\n });\n },\n [color, tile],\n );\n return null;\n}\n"],"names":[],"version":3,"file":"map-interface.f8826069.js.map"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function $parcel$export(e, n, v, s) {
|
|
3
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
$parcel$export(module.exports, "age-chip", () => $ae0016a490fce4b5$export$eb4c6d45e0e8265b, (v) => $ae0016a490fce4b5$export$eb4c6d45e0e8265b = v);
|
|
7
|
-
$parcel$export(module.exports, "age-chip-age", () => $ae0016a490fce4b5$export$1a12372f439eeed7, (v) => $ae0016a490fce4b5$export$1a12372f439eeed7 = v);
|
|
8
|
-
$parcel$export(module.exports, "age-chip-container", () => $ae0016a490fce4b5$export$9759c64f9027df1f, (v) => $ae0016a490fce4b5$export$9759c64f9027df1f = v);
|
|
9
|
-
$parcel$export(module.exports, "age-chip-ma", () => $ae0016a490fce4b5$export$24f941c9795ad653, (v) => $ae0016a490fce4b5$export$24f941c9795ad653 = v);
|
|
10
|
-
$parcel$export(module.exports, "age-ma", () => $ae0016a490fce4b5$export$e2d3f9c2293ff4bc, (v) => $ae0016a490fce4b5$export$e2d3f9c2293ff4bc = v);
|
|
11
|
-
$parcel$export(module.exports, "chip", () => $ae0016a490fce4b5$export$aa2a4c698c03a4c8, (v) => $ae0016a490fce4b5$export$aa2a4c698c03a4c8 = v);
|
|
12
|
-
$parcel$export(module.exports, "emphasized", () => $ae0016a490fce4b5$export$1ee2ee71de083e4d, (v) => $ae0016a490fce4b5$export$1ee2ee71de083e4d = v);
|
|
13
|
-
$parcel$export(module.exports, "lith-chip", () => $ae0016a490fce4b5$export$ec979c6b78633e98, (v) => $ae0016a490fce4b5$export$ec979c6b78633e98 = v);
|
|
14
|
-
var $ae0016a490fce4b5$export$eb4c6d45e0e8265b;
|
|
15
|
-
var $ae0016a490fce4b5$export$1a12372f439eeed7;
|
|
16
|
-
var $ae0016a490fce4b5$export$9759c64f9027df1f;
|
|
17
|
-
var $ae0016a490fce4b5$export$24f941c9795ad653;
|
|
18
|
-
var $ae0016a490fce4b5$export$e2d3f9c2293ff4bc;
|
|
19
|
-
var $ae0016a490fce4b5$export$aa2a4c698c03a4c8;
|
|
20
|
-
var $ae0016a490fce4b5$export$1ee2ee71de083e4d;
|
|
21
|
-
var $ae0016a490fce4b5$export$ec979c6b78633e98;
|
|
22
|
-
$ae0016a490fce4b5$export$eb4c6d45e0e8265b = `-ZpnVG_age-chip`;
|
|
23
|
-
$ae0016a490fce4b5$export$1a12372f439eeed7 = `-ZpnVG_age-chip-age`;
|
|
24
|
-
$ae0016a490fce4b5$export$9759c64f9027df1f = `-ZpnVG_age-chip-container`;
|
|
25
|
-
$ae0016a490fce4b5$export$24f941c9795ad653 = `-ZpnVG_age-chip-ma`;
|
|
26
|
-
$ae0016a490fce4b5$export$e2d3f9c2293ff4bc = `-ZpnVG_age-ma`;
|
|
27
|
-
$ae0016a490fce4b5$export$aa2a4c698c03a4c8 = `-ZpnVG_chip`;
|
|
28
|
-
$ae0016a490fce4b5$export$1ee2ee71de083e4d = `-ZpnVG_emphasized`;
|
|
29
|
-
$ae0016a490fce4b5$export$ec979c6b78633e98 = `-ZpnVG_lith-chip`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=map-interface.f9611285.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAPA,4CAA6B,CAAC,eAAe,CAAC;AAC9C,4CAAiC,CAAC,mBAAmB,CAAC;AACtD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA2B,CAAC,aAAa,CAAC;AAC1C,4CAAyB,CAAC,WAAW,CAAC;AACtC,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA8B,CAAC,gBAAgB,CAAC","sources":["packages/map-interface/src/location-details/info-blocks.module.styl"],"sourcesContent":[".chip\n padding 3px 6px\n margin 2px 6px 2px 0\n border-radius: 5px;\n text-align: center;\n &.emphasized\n font-weight: 600;\n\n.age-chip-container {\n font-family: 'Montserrat', sans-serif;\n font-weight: 700;\n display: inline-block;\n}\n.age-chip {\n display: inline-block;\n}\n\n:global(.bp5-dark) .age-chip {\n color: #fff;\n}\n\n.age-chip-age {\n font-size: 75%;\n}\n.age-chip-ma {\n font-size: 70%;\n font-weight: 400;\n}\n\n.age-ma {\n font-style italic\n}\n\n.lith-chip\n display: inline-block;\n font-size: 12px;\n background-repeat: repeat;\n background-size: cover;\n //background-color: rgba(255,255,255,0.5);"],"names":[],"version":3,"file":"map-interface.f9611285.js.map"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var $y4eOj$react = require("react");
|
|
2
|
-
var $y4eOj$mapboxgl = require("mapbox-gl");
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function $parcel$export(e, n, v, s) {
|
|
6
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
$parcel$export(module.exports, "getMapPadding", () => $3490fc4f4bda12f7$export$bb78f9f01775eef1);
|
|
10
|
-
$parcel$export(module.exports, "useMapMarker", () => $3490fc4f4bda12f7$export$278090850f6b3a9f);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function $3490fc4f4bda12f7$var$calcMapPadding(rect, childRect) {
|
|
14
|
-
return {
|
|
15
|
-
left: Math.max(rect.left - childRect.left, 0),
|
|
16
|
-
top: Math.max(rect.top - childRect.top, 0),
|
|
17
|
-
right: Math.max(childRect.right - rect.right, 0),
|
|
18
|
-
bottom: Math.max(childRect.bottom - rect.bottom, 0)
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function $3490fc4f4bda12f7$export$bb78f9f01775eef1(ref, parentRef) {
|
|
22
|
-
const rect = parentRef.current?.getBoundingClientRect();
|
|
23
|
-
const childRect = ref.current?.getBoundingClientRect();
|
|
24
|
-
if (rect == null || childRect == null) return;
|
|
25
|
-
return $3490fc4f4bda12f7$var$calcMapPadding(rect, childRect);
|
|
26
|
-
}
|
|
27
|
-
function $3490fc4f4bda12f7$export$278090850f6b3a9f(mapRef, markerRef, markerPosition) {
|
|
28
|
-
(0, $y4eOj$react.useEffect)(()=>{
|
|
29
|
-
const map = mapRef.current;
|
|
30
|
-
if (map == null) return;
|
|
31
|
-
if (markerPosition == null) {
|
|
32
|
-
markerRef.current?.remove();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const marker = markerRef.current ?? new (0, $y4eOj$mapboxgl.Marker)();
|
|
36
|
-
marker.setLngLat(markerPosition).addTo(map);
|
|
37
|
-
markerRef.current = marker;
|
|
38
|
-
return ()=>marker.remove();
|
|
39
|
-
}, [
|
|
40
|
-
mapRef.current,
|
|
41
|
-
markerPosition
|
|
42
|
-
]);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=map-interface.ffb109ef.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;AAGA,SAAS,qCAAe,IAAI,EAAE,SAAS;IACrC,OAAO;QACL,MAAM,KAAK,GAAG,CAAC,KAAK,IAAI,GAAG,UAAU,IAAI,EAAE;QAC3C,KAAK,KAAK,GAAG,CAAC,KAAK,GAAG,GAAG,UAAU,GAAG,EAAE;QACxC,OAAO,KAAK,GAAG,CAAC,UAAU,KAAK,GAAG,KAAK,KAAK,EAAE;QAC9C,QAAQ,KAAK,GAAG,CAAC,UAAU,MAAM,GAAG,KAAK,MAAM,EAAE;IACnD;AACF;AAEO,SAAS,0CAAc,GAAG,EAAE,SAAS;IAC1C,MAAM,OAAO,UAAU,OAAO,EAAE;IAChC,MAAM,YAAY,IAAI,OAAO,EAAE;IAC/B,IAAI,QAAQ,QAAQ,aAAa,MAAM;IACvC,OAAO,qCAAe,MAAM;AAC9B;AAEO,SAAS,0CAAa,MAAM,EAAE,SAAS,EAAE,cAAc;IAC5D,CAAA,GAAA,sBAAQ,EAAE;QACR,MAAM,MAAM,OAAO,OAAO;QAC1B,IAAI,OAAO,MAAM;QACjB,IAAI,kBAAkB,MAAM;YAC1B,UAAU,OAAO,EAAE;YACnB;QACF;QACA,MAAM,SAAS,UAAU,OAAO,IAAI,IAAI,CAAA,GAAA,sBAAK;QAC7C,OAAO,SAAS,CAAC,gBAAgB,KAAK,CAAC;QACvC,UAAU,OAAO,GAAG;QACpB,OAAO,IAAM,OAAO,MAAM;IAC5B,GAAG;QAAC,OAAO,OAAO;QAAE;KAAe;AACrC","sources":["packages/map-interface/src/utils.ts"],"sourcesContent":["import { useEffect } from \"react\";\nimport { Marker } from \"mapbox-gl\";\n\nfunction calcMapPadding(rect, childRect) {\n return {\n left: Math.max(rect.left - childRect.left, 0),\n top: Math.max(rect.top - childRect.top, 0),\n right: Math.max(childRect.right - rect.right, 0),\n bottom: Math.max(childRect.bottom - rect.bottom, 0),\n };\n}\n\nexport function getMapPadding(ref, parentRef) {\n const rect = parentRef.current?.getBoundingClientRect();\n const childRect = ref.current?.getBoundingClientRect();\n if (rect == null || childRect == null) return;\n return calcMapPadding(rect, childRect);\n}\n\nexport function useMapMarker(mapRef, markerRef, markerPosition) {\n useEffect(() => {\n const map = mapRef.current;\n if (map == null) return;\n if (markerPosition == null) {\n markerRef.current?.remove();\n return;\n }\n const marker = markerRef.current ?? new Marker();\n marker.setLngLat(markerPosition).addTo(map);\n markerRef.current = marker;\n return () => marker.remove();\n }, [mapRef.current, markerPosition]);\n}\n"],"names":[],"version":3,"file":"map-interface.ffb109ef.js.map"}
|