There and Back Again competition entry https://shiny.petras.space/commute/
rstats
rshiny
census
competition
leaflet
javascript
stats-nz

extras.R 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. extracss <- "
  2. html, body {
  3. width:100%;
  4. height:100%
  5. }
  6. #map {
  7. height: 100% !important;
  8. position: absolute !important;
  9. top: 0;
  10. left: 0;
  11. }
  12. #loading {
  13. cursor: progress !important;
  14. }
  15. #loading p {
  16. border-radius: 5px;
  17. background-color: rgba(255, 255, 255, 0.8);
  18. padding: 6px 8px;
  19. box-shadow: 0 0 15px rgba(0,0,0,0.2);
  20. font-size: 1.5em;
  21. font-weight: bold;
  22. }
  23. #mapcontrol, #infobuttoncontainer, #infopanel {
  24. background-color: rgba(255, 255, 255, 0.8);
  25. border-radius: 5px;
  26. box-shadow: 0 0 15px rgba(0,0,0,0.2);
  27. padding: 6px 8px;
  28. font: 14px/16px Arial, Helvetica, sans-serif;
  29. }
  30. #infopanel {
  31. display: none;
  32. padding: 30px;
  33. z-index: 1001;
  34. }
  35. #lochtml ul {
  36. padding-left: 15px;
  37. }
  38. .radio label span p {
  39. margin-top: 3px;
  40. margin-bottom: 0px;
  41. }
  42. .leaflet-container {
  43. background-color: #84e1e1;
  44. }
  45. #infobuttoncontainer {
  46. margin-bottom: 16px;
  47. z-index: 1002;
  48. }
  49. #infobuttoncontainer .shiny-input-container,
  50. #infobuttoncontainer div div {
  51. margin-right: 0px !important;
  52. margin-bottom: 0px !important;
  53. }
  54. "