geoblacklight 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c66665cbabfb3ba8ad4f22cb69c5a34901502e1
4
- data.tar.gz: f7cd3b0972dc89757282a8332e1f168bba7d0035
3
+ metadata.gz: 277065d1ccfa2b672a49c7274d3ff541045c26e4
4
+ data.tar.gz: f73d1a5581fe9e9ec723b2d1f43f20319fa207d1
5
5
  SHA512:
6
- metadata.gz: 2ba6e4f97b0b646b8a37a7e58c8fa1e986930512b27f746742131a5d47190dfcf6bb1302c1f91eff47648969d767dabaaf733c0f47ed83748f3a2fcfe2f0aab4
7
- data.tar.gz: 43e761955b978e8acd896b36714eb2b48ea300db2427a75f4ee1ef10d49e4d8a49379d7d7f41df5ec9a021f511e9cb23ad8fb39695654fb2f74c90403bf7ee7f
6
+ metadata.gz: 9adea08883883ad2e6b89d0af19888d5629bcf1eb8e89845462ee6657b314230a9419d796322ff01ec8e206a283655780d19bb47501eb725ce982d2189c42b98
7
+ data.tar.gz: 30e75668c5cc73d53fa89603c8252b22f98796f9879f901da377c1d96126e479c50d7229ec66abdfe437e31b02135e7380778a719b52db29338cac62587ebd43
@@ -1,13 +1,13 @@
1
1
  <?xml version="1.0" standalone="no"?>
2
2
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
3
  <!--
4
- 2014-11-10: Created.
4
+ 2014-11-14: Created.
5
5
  -->
6
6
  <svg xmlns="http://www.w3.org/2000/svg">
7
7
  <metadata>
8
- Created by FontForge 20120731 at Mon Nov 10 06:52:21 2014
9
- By Jack Reed
10
- Created by Jack Reed with FontForge 2.0 (http://fontforge.sf.net)
8
+ Created by FontForge 20120731 at Fri Nov 14 11:24:15 2014
9
+ By Eliot Jordan
10
+ Created by Eliot Jordan with FontForge 2.0 (http://fontforge.sf.net)
11
11
  </metadata>
12
12
  <defs>
13
13
  <font id="geoblacklight" horiz-adv-x="512" >
@@ -22,7 +22,7 @@ Created by Jack Reed with FontForge 2.0 (http://fontforge.sf.net)
22
22
  bbox="-0.12793 -82.7842 512.128 487.36"
23
23
  underline-thickness="25.6"
24
24
  underline-position="-51.2"
25
- unicode-range="U+F101-F110"
25
+ unicode-range="U+F101-F111"
26
26
  />
27
27
  <missing-glyph />
28
28
  <glyph glyph-name="uniF10D" unicode="&#xf10d;"
@@ -46,20 +46,21 @@ c-3.04753 -6.28581 -7.57129 -11.238 -13.5713 -14.8564c-6 -3.61914 -12.4287 -5.42
46
46
  c-6.28581 13.3333 -9.42871 30.3809 -9.42871 51.1426c0 40.3809 14.2858 74.8571 42.8574 103.429c28.571 28.571 63.0469 42.8564 103.428 42.8564c40.3815 0 74.8577 -14.2855 103.429 -42.8564c28.5716 -28.5716 42.8574 -63.0479 42.8574 -103.429z" />
47
47
  <glyph glyph-name="uniF10A" unicode="&#xf10a;"
48
48
  d="M0 448zM0 384h512v-416h-512v416zM480 0v352h-448v-352h448zM352 272c0 26.5117 21.4883 48 48 48s48 -21.4883 48 -48s-21.4883 -48 -48 -48s-48 21.4883 -48 48zM448 32h-384l96 256l128 -160l64 48z" />
49
- <glyph glyph-name="uniF102" unicode="&#xf102;"
50
- d="M92.2803 367.832l71.1113 70.6562h187.185l69.1436 -70.7207l-0.015625 -99.8477h-123.456v46.6396h-75.0078v-67.6875h135.527l62.9521 -60.7998v-183.864l-61.7998 -61.7119h-203.464l-62.04 62.5283v99.3438h133.392v-41.1602h75.9121v63.1123l-147.655 -0.0166016
51
- l-61.7842 61.7998v181.729zM100.272 364.168v-174.848l56.9512 -56.9766s137.712 0 152.48 0.0078125v-79.5596c-12.9043 0 -79.4404 0 -92.3604 -0.0244141v41.168h-116.943v-87.6396l57.1279 -57.7842h196.783l56.9521 56.96v177.08l-58.2637 55.9121h-140.24
52
- c0.0078125 12.6318 0.0078125 71.4883 0 84.1279h91.4727v-46.6396h107.031v88.168l-64.3115 65.9355h-180.488zM169.832 421.232h173.776l59.4561 -61.1602l-0.0166016 -76.4805h-90.5518v46.6406h-107.937l0.00878906 -100.601h144.976l53.5205 -51l-0.0166016 -170.296
53
- l-52.0635 -52.1758h-190.088l-52.2324 53.0234v75.9199h100.479v-41.1514h108.824l0.0166016 96.0322h-157.312l-52.1201 52.1357v167.952zM287.544 162.936c0 -0.03125 -0.0634766 -0.167969 -0.328125 -0.463867c0.12793 0.152344 0.255859 0.320312 0.328125 0.463867z
54
- M92.2803 367.832l71.1201 70.6562h187.176l69.1436 -70.7207l-0.015625 -99.8477h-123.464v46.6396h-75v-67.6875h135.527l62.9521 -60.7998v-183.864l-61.792 -61.7119h-203.472l-62.04 62.5283v99.3438h133.392v-41.1602h75.9199v63.1123l-147.663 -0.0166016
55
- l-61.7842 61.7998v181.729zM100.264 364.168v-174.848l56.9521 -56.9766s137.72 0 152.488 0.0078125v-79.5596c-12.9121 0 -79.4404 0 -92.3604 -0.0244141v41.168h-116.943v-87.6396l57.1279 -57.7842h196.792l56.9434 56.96v177.08l-58.2559 55.9121h-140.24
56
- c0.00878906 12.6318 0.00878906 71.4883 0 84.1279h91.4805v-46.6396h107.024v88.168l-64.3125 65.9355h-180.496zM169.832 421.232h173.768l59.4561 -61.1602l-0.015625 -76.4805h-90.5361v46.6406h-107.944l0.00878906 -100.601h144.976l53.5117 -51l-0.015625 -170.296
57
- l-52.0557 -52.1758h-190.088l-52.2402 53.0234v75.9199h100.487v-41.1514h108.824l0.0166016 96.0322h-157.312l-52.1279 52.1357v167.952zM287.552 162.936c0 -0.03125 -0.0634766 -0.167969 -0.34375 -0.463867c0.143555 0.152344 0.272461 0.320312 0.34375 0.463867z
58
- M92.2803 367.832l71.1113 70.6562h187.185l69.1436 -70.7207l-0.015625 -99.8477h-123.456v46.6396h-75.0078v-67.6875h135.527l62.9521 -60.7998v-183.864l-61.7998 -61.7119h-203.464l-62.04 62.5283v99.3438h133.392v-41.1602h75.9121v63.1123l-147.655 -0.0166016
59
- l-61.7842 61.7998v181.729zM100.272 364.168v-174.848l56.9512 -56.9766s137.712 0 152.48 0.0078125v-79.5596c-12.9043 0 -79.4404 0 -92.3604 -0.0244141v41.168h-116.943v-87.6396l57.1279 -57.7842h196.783l56.9521 56.96v177.08l-58.2637 55.9121h-140.24
60
- c0.0078125 12.6318 0.0078125 71.4883 0 84.1279h91.4727v-46.6396h107.031v88.168l-64.3115 65.9355h-180.488zM169.832 421.232h173.776l59.4561 -61.1602l-0.0166016 -76.4805h-90.5518v46.6406h-107.937l0.00878906 -100.601h144.976l53.5205 -51l-0.0166016 -170.296
61
- l-52.0635 -52.1758h-190.088l-52.2324 53.0234v75.9199h100.479v-41.1514h108.824l0.0166016 96.0322h-157.312l-52.1201 52.1357v167.952zM287.544 162.936c0 -0.03125 -0.0634766 -0.167969 -0.328125 -0.463867c0.12793 0.152344 0.255859 0.320312 0.328125 0.463867z
62
- " />
49
+ <glyph glyph-name="uniF111" unicode="&#xf111;"
50
+ d="M236.241 -53.5957c-39.2422 19.7959 -84 51.4355 -114.856 81.1934c-67.5645 65.1572 -106.971 141.55 -119.299 231.273c-2.74121 19.9512 -1.61914 107.34 1.52637 118.825l1.40332 5.12305l15.5615 -5.44434c30.9717 -10.8359 71.543 -14.4951 101.728 -9.1748
51
+ c43.5264 7.67285 86.2246 31.6787 117.77 66.2139c6.83691 7.4834 13.2295 13.6074 14.207 13.6074s4.1875 -2.86133 7.13184 -6.3584c10.2627 -12.1855 32.1816 -31.8555 45.915 -41.2041c39.8291 -27.1123 85.4346 -38.8242 131.687 -33.8174
52
+ c19.4805 2.10938 52.6992 10.3691 58.4971 14.5459c2.11914 1.52734 3.92188 1.79395 4.8457 0.717773c6.82617 -7.95801 8.51758 -95.6689 2.56348 -132.948c-17.3984 -108.918 -77.3057 -199.904 -177.038 -268.885c-28.71 -19.8574 -66.4463 -40.6914 -73.7041 -40.6914
53
+ c-2.20898 0 -10.2803 3.16113 -17.9375 7.02344v0zM269.591 -50.1523c33.1006 16.8311 70.7471 42.3232 99.6113 67.4492l14.5205 12.6396l-64.8115 46.6934l-64.8105 46.6943l-64.5576 -46.4883l-64.5566 -46.4873l11.0137 -10.2803
54
+ c18.458 -17.2295 66.0986 -50.6211 91.7832 -64.3311c13.3584 -7.13086 25.0996 -12.9648 26.0908 -12.9648s8.06445 3.18359 15.7168 7.0752v0zM161.711 166.989l92.3789 66.5391l92.9023 -66.916c58.1553 -41.8887 93.7041 -66.2998 95.0459 -65.2676
55
+ c3.6416 2.80176 18.0664 27.8662 26.9551 46.8389c12.75 27.2109 20.8135 51.6875 28.8213 87.4805l1.23242 5.50977h-245.009c-232.207 0 -244.95 -0.154297 -243.872 -2.9668c0.625977 -1.63184 1.82422 -6.78125 2.66309 -11.4443
56
+ c2.6123 -14.5166 14.8213 -52.1904 22.5928 -69.7168c11.373 -25.6494 28.9111 -56.5957 32.0732 -56.5957c1.01074 0 43.4082 29.9434 94.2158 66.5391v0zM496.618 238.45c-0.393555 -1.43164 -2.15723 -8.58984 -3.94727 -16.002
57
+ c-8.49609 -35.2314 -19.0225 -62.7461 -35.9414 -93.9385c-7.63281 -14.0684 -14.0596 -23.623 -15.666 -24.8281c-3.73047 1.45508 -27.6641 18.0264 -103.541 72.041c-45.334 32.2725 -82.2363 58.8691 -84.042 58.8691c-1.81641 0 -42.9307 -29.876 -93.4189 -66.1582
58
+ c-47.3145 -33.999 -87.249 -62.2432 -92.5254 -65.543c-1.15918 1.00391 -2.89453 3.19434 -4.60938 5.90234c-20.6338 32.6279 -37.3516 73.1865 -47.7021 115.796l-3.47754 14.3145zM12.8613 224.016c10.4082 -42.8477 27.21 -83.6299 48.0107 -116.522
59
+ c2.21582 -3.50098 4.61133 -7.18945 6.68652 -7.18945c2.03418 0 43.457 29.8916 93.9219 66.1543c46.9766 33.7598 86.3662 61.792 92.0059 65.502c4.98438 -3.23535 40.498 -28.2285 82.626 -58.2178c80.2793 -57.1484 101.706 -72.543 105.031 -72.543
60
+ c3.10742 0 9.52832 11.0459 17.7236 26.1514c17.0039 31.3496 27.6318 59.1309 36.168 94.5273c1.7832 7.38574 3.5625 14.5996 3.92773 15.9277l1.11328 4.04395l-242.931 -0.3125c-132.885 -0.173828 -242.193 -0.501953 -244.269 -1.04688l-3.77637 -0.992188z
61
+ M160.501 -0.358398c28.1416 -21.1934 53.5537 -37.5586 77.5508 -49.9316c7.70117 -3.97168 14.251 -7.27832 15.9443 -7.27832c2.50488 0 15.248 6.43652 30.0918 14.5684c28.1689 15.4277 61.5088 39.1455 92.6777 65.9229l8.38379 7.2041l-131.033 94.418
62
+ l-64.5205 -46.4805c-34.7969 -25.0664 -64.3545 -45.7471 -64.2881 -47.8936c0.105469 -3.06934 18.708 -18.1143 35.1934 -30.5293zM161.964 1.58398c-14.8516 11.1846 -31.0029 24.9629 -33.8848 28.3955c5.11133 4.125 31.376 23.375 62.9375 46.1113l63.0996 45.457
63
+ l127.106 -91.5889l-6.04199 -5.19141c-31.0557 -26.6807 -64.2979 -50.3193 -92.2607 -65.6357c-14.2607 -7.81152 -26.8184 -13.8145 -28.8838 -14.2617c-1.31836 0.357422 -7.87695 3.39355 -14.8701 7.00098c-23.8408 12.2939 -49.1416 28.5801 -77.2021 49.7129z" />
63
64
  <glyph glyph-name="uniF106" unicode="&#xf106;"
64
65
  d="M88.1523 256.52h41.7598l6.42383 -225.407h-53.7998l5.61621 225.407v0zM48.7842 23.0078h414.432v-29.0234h24.832v-28.9766h24.0801v-29.0078h-512.256v28.9922h24.0801v28.9922h24.832v29.0234v0zM484.824 319.456v0v-17.7285h-457.664v17.7285l228.824 108.424z
65
66
  M71.2725 293.632h369.447v-29h-369.447v29v0zM381.272 256.52h41.7754l6.42383 -225.407h-53.8154zM283.56 256.52h41.7686l6.42383 -225.407h-53.8076l5.61523 225.407v0zM185.856 256.52h41.7676l6.42383 -225.424h-53.8076z" />
@@ -97,6 +98,20 @@ d="M410.671 346.672v77.0098h77.0117v-77.0098h-77.0117zM386.353 322.354h125.648v1
97
98
  l-34.3926 34.3926z" />
98
99
  <glyph glyph-name="uniF104" unicode="&#xf104;"
99
100
  d="M107.952 448h-107.952v-512h107.952v512zM283.759 448h-107.951v-348.53h107.951v348.53zM459.566 448h-107.952v-512h107.952v512z" />
101
+ <glyph glyph-name="uniF102" unicode="&#xf102;"
102
+ d="M92.2803 367.832l71.1113 70.6562h187.185l69.1436 -70.7207l-0.015625 -99.8477h-123.456v46.6396h-75.0078v-67.6875h135.527l62.9521 -60.7998v-183.864l-61.7998 -61.7119h-203.464l-62.04 62.5283v99.3438h133.392v-41.1602h75.9121v63.1123l-147.655 -0.0166016
103
+ l-61.7842 61.7998v181.729zM100.272 364.168v-174.848l56.9512 -56.9766s137.712 0 152.48 0.0078125v-79.5596c-12.9043 0 -79.4404 0 -92.3604 -0.0244141v41.168h-116.943v-87.6396l57.1279 -57.7842h196.783l56.9521 56.96v177.08l-58.2637 55.9121h-140.24
104
+ c0.0078125 12.6318 0.0078125 71.4883 0 84.1279h91.4727v-46.6396h107.031v88.168l-64.3115 65.9355h-180.488zM169.832 421.232h173.776l59.4561 -61.1602l-0.0166016 -76.4805h-90.5518v46.6406h-107.937l0.00878906 -100.601h144.976l53.5205 -51l-0.0166016 -170.296
105
+ l-52.0635 -52.1758h-190.088l-52.2324 53.0234v75.9199h100.479v-41.1514h108.824l0.0166016 96.0322h-157.312l-52.1201 52.1357v167.952zM287.544 162.936c0 -0.03125 -0.0634766 -0.167969 -0.328125 -0.463867c0.12793 0.152344 0.255859 0.320312 0.328125 0.463867z
106
+ M92.2803 367.832l71.1201 70.6562h187.176l69.1436 -70.7207l-0.015625 -99.8477h-123.464v46.6396h-75v-67.6875h135.527l62.9521 -60.7998v-183.864l-61.792 -61.7119h-203.472l-62.04 62.5283v99.3438h133.392v-41.1602h75.9199v63.1123l-147.663 -0.0166016
107
+ l-61.7842 61.7998v181.729zM100.264 364.168v-174.848l56.9521 -56.9766s137.72 0 152.488 0.0078125v-79.5596c-12.9121 0 -79.4404 0 -92.3604 -0.0244141v41.168h-116.943v-87.6396l57.1279 -57.7842h196.792l56.9434 56.96v177.08l-58.2559 55.9121h-140.24
108
+ c0.00878906 12.6318 0.00878906 71.4883 0 84.1279h91.4805v-46.6396h107.024v88.168l-64.3125 65.9355h-180.496zM169.832 421.232h173.768l59.4561 -61.1602l-0.015625 -76.4805h-90.5361v46.6406h-107.944l0.00878906 -100.601h144.976l53.5117 -51l-0.015625 -170.296
109
+ l-52.0557 -52.1758h-190.088l-52.2402 53.0234v75.9199h100.487v-41.1514h108.824l0.0166016 96.0322h-157.312l-52.1279 52.1357v167.952zM287.552 162.936c0 -0.03125 -0.0634766 -0.167969 -0.34375 -0.463867c0.143555 0.152344 0.272461 0.320312 0.34375 0.463867z
110
+ M92.2803 367.832l71.1113 70.6562h187.185l69.1436 -70.7207l-0.015625 -99.8477h-123.456v46.6396h-75.0078v-67.6875h135.527l62.9521 -60.7998v-183.864l-61.7998 -61.7119h-203.464l-62.04 62.5283v99.3438h133.392v-41.1602h75.9121v63.1123l-147.655 -0.0166016
111
+ l-61.7842 61.7998v181.729zM100.272 364.168v-174.848l56.9512 -56.9766s137.712 0 152.48 0.0078125v-79.5596c-12.9043 0 -79.4404 0 -92.3604 -0.0244141v41.168h-116.943v-87.6396l57.1279 -57.7842h196.783l56.9521 56.96v177.08l-58.2637 55.9121h-140.24
112
+ c0.0078125 12.6318 0.0078125 71.4883 0 84.1279h91.4727v-46.6396h107.031v88.168l-64.3115 65.9355h-180.488zM169.832 421.232h173.776l59.4561 -61.1602l-0.0166016 -76.4805h-90.5518v46.6406h-107.937l0.00878906 -100.601h144.976l53.5205 -51l-0.0166016 -170.296
113
+ l-52.0635 -52.1758h-190.088l-52.2324 53.0234v75.9199h100.479v-41.1514h108.824l0.0166016 96.0322h-157.312l-52.1201 52.1357v167.952zM287.544 162.936c0 -0.03125 -0.0634766 -0.167969 -0.328125 -0.463867c0.12793 0.152344 0.255859 0.320312 0.328125 0.463867z
114
+ " />
100
115
  <glyph glyph-name="uniF105" unicode="&#xf105;"
101
116
  d="M73.3057 366.146v-116.948h-73.3057v198.802h458.019v-198.802h-72.0498v116.314h-97.7275v-357.704h78.6797v-71.8086h-276.963v71.8086h78.6846v358.338h-95.3369z" />
102
117
  </font>
@@ -12,6 +12,7 @@ GeoBlacklight.Item = GeoBlacklight.extend({
12
12
  this.layer = new L.layerGroup().addTo(this.map);
13
13
  if (this.dataAttributes.available) {
14
14
  this.addPreviewLayer();
15
+ this.addOpacityControl();
15
16
  } else {
16
17
  this.addBoundsOverlay(L.bboxToBounds(this.dataAttributes.mapBbox));
17
18
  }
@@ -31,6 +32,11 @@ GeoBlacklight.Item = GeoBlacklight.extend({
31
32
  _this.setupInspection();
32
33
  },
33
34
 
35
+ addOpacityControl: function() {
36
+ var _this = this;
37
+ _this.map.addControl(new L.Control.LayerOpacity(_this.layer));
38
+ },
39
+
34
40
  setupInspection: function() {
35
41
  var _this = this;
36
42
  _this.map.on('click', function(e) {
@@ -0,0 +1,49 @@
1
+ // Adopts the Mapbox opacity control into a Leaflet plugin
2
+
3
+ !function(global) {
4
+ 'use strict';
5
+
6
+ L.Control.LayerOpacity = L.Control.extend({
7
+ initialize: function(layerGroup) {
8
+ var options = {
9
+ position: 'topleft',
10
+ layer: layerGroup.getLayers()[0]
11
+ };
12
+
13
+ L.Util.setOptions(this, options);
14
+ },
15
+
16
+ onAdd: function(map) {
17
+ var container = L.DomUtil.create('div', 'opacity-control'),
18
+ handle = L.DomUtil.create('div', 'opacity-handle', container),
19
+ bottom = L.DomUtil.create('div', 'oppacity-bottom', container);
20
+
21
+ L.DomEvent.disableClickPropagation(container);
22
+ this.setListeners(handle);
23
+ return container;
24
+ },
25
+
26
+ setListeners: function(handle) {
27
+ var _this = this,
28
+ start = false,
29
+ startTop;
30
+
31
+ L.DomEvent.addListener(document, 'mousemove', function(e) {
32
+ if (!start) return;
33
+ handle.style.top = Math.max(-5, Math.min(195, startTop + parseInt(e.clientY, 10) - start)) + 'px';
34
+ _this.options.layer.setOpacity(1 - (handle.offsetTop / 200));
35
+ });
36
+
37
+ L.DomEvent.addListener(handle, 'mousedown', function(e) {
38
+ start = parseInt(e.clientY, 10);
39
+ startTop = handle.offsetTop - 5;
40
+ return false;
41
+ });
42
+
43
+ L.DomEvent.addListener(document, 'mouseup', function(e) {
44
+ L.DomEvent.stopPropagation(e);
45
+ start = null;
46
+ });
47
+ }
48
+ });
49
+ }(this);
@@ -17,4 +17,5 @@
17
17
  @import 'modules/icon-customization';
18
18
  @import 'modules/home';
19
19
  @import 'modules/item';
20
+ @import 'modules/layer_opacity';
20
21
  @import 'modules/results';
@@ -3,42 +3,6 @@
3
3
  max-height: 450px;
4
4
  }
5
5
 
6
- #control {
7
- text-align: center;
8
- background: #FFF;
9
- position: absolute;
10
- left: 24px;
11
- top: 120px;
12
- height: 200px;
13
- width: 28px;
14
- border: 1px solid #BBB;
15
- -webkit-border-radius: 3px;
16
- border-radius: 3px;
17
- z-index: 999;
18
- }
19
-
20
- #handle {
21
- background: #000;
22
- position: absolute;
23
- left: -1px;
24
- top: 20px;
25
- width: 28px;
26
- height: 10px;
27
- }
28
-
29
- #bottom {
30
- position: absolute;
31
- bottom:0px;
32
- left: 8px;
33
- text-align: center;
34
- }
35
-
36
- #handle:hover {
37
- cursor: pointer;
38
- background: #444;
39
- cursor: ns-resize;
40
- }
41
-
42
6
  .show-tools .bookmark_toggle {
43
7
  padding: 0px 0px;
44
8
  }
@@ -33,6 +33,7 @@
33
33
  .geoblacklight-paper-map:before,
34
34
  .geoblacklight-point:before,
35
35
  .geoblacklight-polygon:before,
36
+ .geoblacklight-princeton:before,
36
37
  .geoblacklight-raster:before,
37
38
  .geoblacklight-stanford:before,
38
39
  .geoblacklight-tufts:before {
@@ -59,6 +60,7 @@
59
60
  .geoblacklight-paper-map:before { content: "\f110"; }
60
61
  .geoblacklight-point:before { content: "\f109"; }
61
62
  .geoblacklight-polygon:before { content: "\f107"; }
63
+ .geoblacklight-princeton:before { content: "\f111"; }
62
64
  .geoblacklight-raster:before { content: "\f10d"; }
63
65
  .geoblacklight-stanford:before { content: "\f102"; }
64
66
  .geoblacklight-tufts:before { content: "\f105"; }
@@ -72,6 +74,7 @@ $font-geoblacklight-mit: "\f104";
72
74
  $font-geoblacklight-paper-map: "\f110";
73
75
  $font-geoblacklight-point: "\f109";
74
76
  $font-geoblacklight-polygon: "\f107";
77
+ $font-geoblacklight-princeton: "\f111";
75
78
  $font-geoblacklight-raster: "\f10d";
76
79
  $font-geoblacklight-stanford: "\f102";
77
80
  $font-geoblacklight-tufts: "\f105";
@@ -0,0 +1,34 @@
1
+ .leaflet-control.opacity-control {
2
+ background: #fff;
3
+ border: 1px solid #bbb;
4
+ -webkit-border-radius: 3px;
5
+ border-radius: 3px;
6
+ height: 200px;
7
+ position: absolute;
8
+ text-align: center;
9
+ top: 120px;
10
+ width: 28px;
11
+ z-index: 999;
12
+
13
+ .opacity-handle {
14
+ background: #000;
15
+ height: 10px;
16
+ left: -1px;
17
+ position: absolute;
18
+ top: 20px;
19
+ width: 28px;
20
+
21
+ &:hover {
22
+ background: #444;
23
+ cursor: pointer;
24
+ cursor: ns-resize;
25
+ }
26
+ }
27
+
28
+ .opacity-bottom {
29
+ bottom: 0;
30
+ left: 8px;
31
+ position: absolute;
32
+ text-align: center;
33
+ }
34
+ }
@@ -17,7 +17,7 @@ module GeoblacklightHelper
17
17
  end
18
18
 
19
19
  def document_available?
20
- @document.public? || (@document.same_institution? && current_user)
20
+ @document.public? || (@document.same_institution? && user_signed_in?)
21
21
  end
22
22
 
23
23
  def document_downloadable?
@@ -16,7 +16,7 @@
16
16
  <div class='col-md-12 more-info-area'>
17
17
  <div class='collapse' data-collapse-target="<%= document['uuid'] %>">
18
18
  <small>
19
- <%= document['solr_year_i'] %>. <i><%= document['dc_creator_sm'].nil?? '' : document['dc_creator_sm'].join(', ') %></i>. <%= snippit(document['dc_description_s']) %>. <%= document['dc_publisher_s'] %>. Score: <%= document['score'] %>
19
+ <%= document['solr_year_i'] %>. <i><%= document['dc_creator_sm'].nil?? '' : document['dc_creator_sm'].join(', ') %></i>. <%= snippit(document['dc_description_s']) %>. <%= document['dc_publisher_s'] %>.%>
20
20
  </small>
21
21
  </div>
22
22
  </div>
@@ -5,10 +5,6 @@
5
5
  <div class='row'>
6
6
  <div class="col-md-8">
7
7
  <%= content_tag :div, id: 'map', data: { map: 'item', 'catalog-path'=> catalog_index_path , 'map-bbox' => document[:solr_bbox], 'layer-id' => document[:layer_id_s], 'wms-url' => document[:solr_wms_url], available: document_available? } do %>
8
- <div id='control'>
9
- <div id='handle'></div>
10
- <div id='bottom'></div>
11
- </div>
12
8
  <% end %>
13
9
  </div>
14
10
  <div id='table-container' class='col-md-4'><div id='attribute-table' ></div></div>
@@ -1,3 +1,3 @@
1
1
  module Geoblacklight
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-13 00:00:00.000000000 Z
12
+ date: 2014-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight
@@ -266,6 +266,7 @@ files:
266
266
  - app/assets/javascripts/geoblacklight/modules/geosearch.js
267
267
  - app/assets/javascripts/geoblacklight/modules/home.js
268
268
  - app/assets/javascripts/geoblacklight/modules/item.js
269
+ - app/assets/javascripts/geoblacklight/modules/layer_opacity.js
269
270
  - app/assets/javascripts/geoblacklight/modules/map-view.js
270
271
  - app/assets/javascripts/geoblacklight/modules/results.js
271
272
  - app/assets/stylesheets/geoblacklight/_geoblacklight.css.scss
@@ -275,6 +276,7 @@ files:
275
276
  - app/assets/stylesheets/geoblacklight/modules/icon-customization.css.scss
276
277
  - app/assets/stylesheets/geoblacklight/modules/icons.css.scss
277
278
  - app/assets/stylesheets/geoblacklight/modules/item.css.scss
279
+ - app/assets/stylesheets/geoblacklight/modules/layer_opacity.css.scss
278
280
  - app/assets/stylesheets/geoblacklight/modules/results.css.scss
279
281
  - app/controllers/download_controller.rb
280
282
  - app/controllers/wms_controller.rb