leaflet.css 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. /* required styles */
  2. .leaflet-map-pane,
  3. .leaflet-tile,
  4. .leaflet-marker-icon,
  5. .leaflet-marker-shadow,
  6. .leaflet-tile-pane,
  7. .leaflet-overlay-pane,
  8. .leaflet-shadow-pane,
  9. .leaflet-marker-pane,
  10. .leaflet-popup-pane,
  11. .leaflet-overlay-pane svg,
  12. .leaflet-zoom-box,
  13. .leaflet-image-layer,
  14. .leaflet-layer {
  15. position: absolute;
  16. left: 0;
  17. top: 0;
  18. }
  19. .leaflet-container {
  20. overflow: hidden;
  21. -ms-touch-action: none;
  22. }
  23. .leaflet-tile,
  24. .leaflet-marker-icon,
  25. .leaflet-marker-shadow {
  26. -webkit-user-select: none;
  27. -moz-user-select: none;
  28. user-select: none;
  29. }
  30. .leaflet-marker-icon,
  31. .leaflet-marker-shadow {
  32. display: block;
  33. }
  34. /* map is broken in FF if you have max-width: 100% on tiles */
  35. .leaflet-container img {
  36. max-width: none !important;
  37. }
  38. /* stupid Android 2 doesn't understand "max-width: none" properly */
  39. .leaflet-container img.leaflet-image-layer {
  40. max-width: 15000px !important;
  41. }
  42. .leaflet-tile {
  43. filter: inherit;
  44. visibility: hidden;
  45. }
  46. .leaflet-tile-loaded {
  47. visibility: inherit;
  48. }
  49. .leaflet-zoom-box {
  50. width: 0;
  51. height: 0;
  52. }
  53. .leaflet-tile-pane { z-index: 2; }
  54. .leaflet-objects-pane { z-index: 3; }
  55. .leaflet-overlay-pane { z-index: 4; }
  56. .leaflet-shadow-pane { z-index: 5; }
  57. .leaflet-marker-pane { z-index: 6; }
  58. .leaflet-popup-pane { z-index: 7; }
  59. /* control positioning */
  60. .leaflet-control {
  61. position: relative;
  62. z-index: 7;
  63. pointer-events: auto;
  64. }
  65. .leaflet-top,
  66. .leaflet-bottom {
  67. position: absolute;
  68. z-index: 1000;
  69. pointer-events: none;
  70. }
  71. .leaflet-top {
  72. top: 0;
  73. }
  74. .leaflet-right {
  75. right: 0;
  76. }
  77. .leaflet-bottom {
  78. bottom: 0;
  79. }
  80. .leaflet-left {
  81. left: 0;
  82. }
  83. .leaflet-control {
  84. float: left;
  85. clear: both;
  86. }
  87. .leaflet-right .leaflet-control {
  88. float: right;
  89. }
  90. .leaflet-top .leaflet-control {
  91. margin-top: 10px;
  92. }
  93. .leaflet-bottom .leaflet-control {
  94. margin-bottom: 10px;
  95. }
  96. .leaflet-left .leaflet-control {
  97. margin-left: 10px;
  98. }
  99. .leaflet-right .leaflet-control {
  100. margin-right: 10px;
  101. }
  102. /* zoom and fade animations */
  103. .leaflet-fade-anim .leaflet-tile,
  104. .leaflet-fade-anim .leaflet-popup {
  105. opacity: 0;
  106. -webkit-transition: opacity 0.2s linear;
  107. -moz-transition: opacity 0.2s linear;
  108. -o-transition: opacity 0.2s linear;
  109. transition: opacity 0.2s linear;
  110. }
  111. .leaflet-fade-anim .leaflet-tile-loaded,
  112. .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  113. opacity: 1;
  114. }
  115. .leaflet-zoom-anim .leaflet-zoom-animated {
  116. -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
  117. -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
  118. -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
  119. transition: transform 0.25s cubic-bezier(0,0,0.25,1);
  120. }
  121. .leaflet-zoom-anim .leaflet-tile,
  122. .leaflet-pan-anim .leaflet-tile,
  123. .leaflet-touching .leaflet-zoom-animated {
  124. -webkit-transition: none;
  125. -moz-transition: none;
  126. -o-transition: none;
  127. transition: none;
  128. }
  129. .leaflet-zoom-anim .leaflet-zoom-hide {
  130. visibility: hidden;
  131. }
  132. /* cursors */
  133. .leaflet-clickable {
  134. cursor: pointer;
  135. }
  136. .leaflet-container {
  137. cursor: -webkit-grab;
  138. cursor: -moz-grab;
  139. }
  140. .leaflet-popup-pane,
  141. .leaflet-control {
  142. cursor: auto;
  143. }
  144. .leaflet-dragging,
  145. .leaflet-dragging .leaflet-clickable,
  146. .leaflet-dragging .leaflet-container {
  147. cursor: move;
  148. cursor: -webkit-grabbing;
  149. cursor: -moz-grabbing;
  150. }
  151. /* visual tweaks */
  152. .leaflet-container {
  153. background: #ddd;
  154. outline: 0;
  155. }
  156. .leaflet-container a {
  157. color: #0078A8;
  158. }
  159. .leaflet-container a.leaflet-active {
  160. outline: 2px solid orange;
  161. }
  162. .leaflet-zoom-box {
  163. border: 2px dotted #05f;
  164. background: white;
  165. opacity: 0.5;
  166. }
  167. /* general typography */
  168. .leaflet-container {
  169. font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  170. }
  171. /* general toolbar styles */
  172. .leaflet-bar {
  173. box-shadow: 0 0 8px rgba(0,0,0,0.4);
  174. border: 1px solid #888;
  175. -webkit-border-radius: 5px;
  176. border-radius: 5px;
  177. }
  178. .leaflet-bar-part {
  179. background-color: rgba(255, 255, 255, 0.8);
  180. border-bottom: 1px solid #aaa;
  181. }
  182. .leaflet-bar-part-top {
  183. -webkit-border-radius: 4px 4px 0 0;
  184. border-radius: 4px 4px 0 0;
  185. }
  186. .leaflet-bar-part-bottom {
  187. -webkit-border-radius: 0 0 4px 4px;
  188. border-radius: 0 0 4px 4px;
  189. border-bottom: none;
  190. }
  191. .leaflet-touch .leaflet-bar {
  192. -webkit-border-radius: 10px;
  193. border-radius: 10px;
  194. }
  195. .leaflet-touch .leaflet-bar-part {
  196. border-bottom: 4px solid rgba(0,0,0,0.3);
  197. }
  198. .leaflet-touch .leaflet-bar-part-top {
  199. -webkit-border-radius: 7px 7px 0 0;
  200. border-radius: 7px 7px 0 0;
  201. }
  202. .leaflet-touch .leaflet-bar-part-bottom {
  203. -webkit-border-radius: 0 0 7px 7px;
  204. border-radius: 0 0 7px 7px;
  205. border-bottom: none;
  206. }
  207. /* zoom control */
  208. .leaflet-container .leaflet-control-zoom {
  209. margin-left: 13px;
  210. margin-top: 12px;
  211. }
  212. .leaflet-control-zoom a {
  213. width: 22px;
  214. height: 22px;
  215. text-align: center;
  216. text-decoration: none;
  217. color: black;
  218. }
  219. .leaflet-control-zoom a,
  220. .leaflet-control-layers-toggle {
  221. background-position: 50% 50%;
  222. background-repeat: no-repeat;
  223. display: block;
  224. }
  225. .leaflet-control-zoom a:hover {
  226. background-color: #fff;
  227. color: #777;
  228. }
  229. .leaflet-control-zoom-in {
  230. font: bold 18px/24px Arial, Helvetica, sans-serif;
  231. }
  232. .leaflet-control-zoom-out {
  233. font: bold 23px/20px Tahoma, Verdana, sans-serif;
  234. }
  235. .leaflet-control-zoom a.leaflet-control-zoom-disabled {
  236. cursor: default;
  237. background-color: rgba(255, 255, 255, 0.8);
  238. color: #bbb;
  239. }
  240. .leaflet-touch .leaflet-control-zoom a {
  241. width: 30px;
  242. height: 30px;
  243. }
  244. .leaflet-touch .leaflet-control-zoom-in {
  245. font-size: 24px;
  246. line-height: 29px;
  247. }
  248. .leaflet-touch .leaflet-control-zoom-out {
  249. font-size: 28px;
  250. line-height: 24px;
  251. }
  252. /* layers control */
  253. .leaflet-control-layers {
  254. box-shadow: 0 1px 7px rgba(0,0,0,0.4);
  255. background: #f8f8f9;
  256. -webkit-border-radius: 8px;
  257. border-radius: 8px;
  258. }
  259. .leaflet-control-layers-toggle {
  260. background-image: url(images/layers.png);
  261. width: 36px;
  262. height: 36px;
  263. }
  264. .leaflet-touch .leaflet-control-layers-toggle {
  265. width: 44px;
  266. height: 44px;
  267. }
  268. .leaflet-control-layers .leaflet-control-layers-list,
  269. .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  270. display: none;
  271. }
  272. .leaflet-control-layers-expanded .leaflet-control-layers-list {
  273. display: block;
  274. position: relative;
  275. }
  276. .leaflet-control-layers-expanded {
  277. padding: 6px 10px 6px 6px;
  278. color: #333;
  279. background: #fff;
  280. }
  281. .leaflet-control-layers-selector {
  282. margin-top: 2px;
  283. position: relative;
  284. top: 1px;
  285. }
  286. .leaflet-control-layers label {
  287. display: block;
  288. }
  289. .leaflet-control-layers-separator {
  290. height: 0;
  291. border-top: 1px solid #ddd;
  292. margin: 5px -10px 5px -6px;
  293. }
  294. /* attribution and scale controls */
  295. .leaflet-container .leaflet-control-attribution {
  296. background-color: rgba(255, 255, 255, 0.7);
  297. box-shadow: 0 0 5px #bbb;
  298. margin: 0;
  299. }
  300. .leaflet-control-attribution,
  301. .leaflet-control-scale-line {
  302. padding: 0 5px;
  303. color: #333;
  304. }
  305. .leaflet-container .leaflet-control-attribution,
  306. .leaflet-container .leaflet-control-scale {
  307. font-size: 11px;
  308. }
  309. .leaflet-left .leaflet-control-scale {
  310. margin-left: 5px;
  311. }
  312. .leaflet-bottom .leaflet-control-scale {
  313. margin-bottom: 5px;
  314. }
  315. .leaflet-control-scale-line {
  316. border: 2px solid #777;
  317. border-top: none;
  318. color: black;
  319. line-height: 1.1;
  320. padding: 2px 5px 1px;
  321. font-size: 11px;
  322. text-shadow: 1px 1px 1px #fff;
  323. background-color: rgba(255, 255, 255, 0.5);
  324. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
  325. white-space: nowrap;
  326. overflow: hidden;
  327. }
  328. .leaflet-control-scale-line:not(:first-child) {
  329. border-top: 2px solid #777;
  330. border-bottom: none;
  331. margin-top: -2px;
  332. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  333. }
  334. .leaflet-control-scale-line:not(:first-child):not(:last-child) {
  335. border-bottom: 2px solid #777;
  336. }
  337. .leaflet-touch .leaflet-control-attribution,
  338. .leaflet-touch .leaflet-control-layers,
  339. .leaflet-touch .leaflet-control-zoom {
  340. box-shadow: none;
  341. }
  342. .leaflet-touch .leaflet-control-layers,
  343. .leaflet-touch .leaflet-control-zoom {
  344. border: 4px solid rgba(0,0,0,0.3);
  345. }
  346. /* popup */
  347. .leaflet-popup {
  348. position: absolute;
  349. text-align: center;
  350. }
  351. .leaflet-popup-content-wrapper {
  352. padding: 1px;
  353. text-align: left;
  354. -webkit-border-radius: 20px;
  355. border-radius: 20px;
  356. }
  357. .leaflet-popup-content {
  358. margin: 14px 20px;
  359. line-height: 1.4;
  360. }
  361. .leaflet-popup-content p {
  362. margin: 18px 0;
  363. }
  364. .leaflet-popup-tip-container {
  365. margin: 0 auto;
  366. width: 40px;
  367. height: 20px;
  368. position: relative;
  369. overflow: hidden;
  370. }
  371. .leaflet-popup-tip {
  372. width: 15px;
  373. height: 15px;
  374. padding: 1px;
  375. margin: -8px auto 0;
  376. -webkit-transform: rotate(45deg);
  377. -moz-transform: rotate(45deg);
  378. -ms-transform: rotate(45deg);
  379. -o-transform: rotate(45deg);
  380. transform: rotate(45deg);
  381. }
  382. .leaflet-popup-content-wrapper, .leaflet-popup-tip {
  383. background: white;
  384. box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  385. }
  386. .leaflet-container a.leaflet-popup-close-button {
  387. position: absolute;
  388. top: 0;
  389. right: 0;
  390. padding: 4px 5px 0 0;
  391. text-align: center;
  392. width: 18px;
  393. height: 14px;
  394. font: 16px/14px Tahoma, Verdana, sans-serif;
  395. color: #c3c3c3;
  396. text-decoration: none;
  397. font-weight: bold;
  398. background: transparent;
  399. }
  400. .leaflet-container a.leaflet-popup-close-button:hover {
  401. color: #999;
  402. }
  403. .leaflet-popup-scrolled {
  404. overflow: auto;
  405. border-bottom: 1px solid #ddd;
  406. border-top: 1px solid #ddd;
  407. }
  408. /* div icon */
  409. .leaflet-div-icon {
  410. background: #fff;
  411. border: 1px solid #666;
  412. }
  413. .leaflet-editing-icon {
  414. -webkit-border-radius: 2px;
  415. border-radius: 2px;
  416. }