leaflet.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. /* required styles */
  2. .leaflet-pane,
  3. .leaflet-tile,
  4. .leaflet-marker-icon,
  5. .leaflet-marker-shadow,
  6. .leaflet-tile-container,
  7. .leaflet-pane > svg,
  8. .leaflet-pane > canvas,
  9. .leaflet-zoom-box,
  10. .leaflet-image-layer,
  11. .leaflet-layer {
  12. position: absolute;
  13. left: 0;
  14. top: 0;
  15. }
  16. .leaflet-container {
  17. overflow: hidden;
  18. }
  19. .leaflet-tile,
  20. .leaflet-marker-icon,
  21. .leaflet-marker-shadow {
  22. -webkit-user-select: none;
  23. -moz-user-select: none;
  24. user-select: none;
  25. -webkit-user-drag: none;
  26. }
  27. /* Prevents IE11 from highlighting tiles in blue */
  28. .leaflet-tile::selection {
  29. background: transparent;
  30. }
  31. /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
  32. .leaflet-safari .leaflet-tile {
  33. image-rendering: -webkit-optimize-contrast;
  34. }
  35. /* hack that prevents hw layers "stretching" when loading new tiles */
  36. .leaflet-safari .leaflet-tile-container {
  37. width: 1600px;
  38. height: 1600px;
  39. -webkit-transform-origin: 0 0;
  40. }
  41. .leaflet-marker-icon,
  42. .leaflet-marker-shadow {
  43. display: block;
  44. }
  45. /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
  46. /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
  47. .leaflet-container .leaflet-overlay-pane svg {
  48. max-width: none !important;
  49. max-height: none !important;
  50. }
  51. .leaflet-container .leaflet-marker-pane img,
  52. .leaflet-container .leaflet-shadow-pane img,
  53. .leaflet-container .leaflet-tile-pane img,
  54. .leaflet-container img.leaflet-image-layer,
  55. .leaflet-container .leaflet-tile {
  56. max-width: none !important;
  57. max-height: none !important;
  58. width: auto;
  59. padding: 0;
  60. }
  61. .leaflet-container.leaflet-touch-zoom {
  62. -ms-touch-action: pan-x pan-y;
  63. touch-action: pan-x pan-y;
  64. }
  65. .leaflet-container.leaflet-touch-drag {
  66. -ms-touch-action: pinch-zoom;
  67. /* Fallback for FF which doesn't support pinch-zoom */
  68. touch-action: none;
  69. touch-action: pinch-zoom;
  70. }
  71. .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  72. -ms-touch-action: none;
  73. touch-action: none;
  74. }
  75. .leaflet-container {
  76. -webkit-tap-highlight-color: transparent;
  77. }
  78. .leaflet-container a {
  79. -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
  80. }
  81. .leaflet-tile {
  82. filter: inherit;
  83. visibility: hidden;
  84. }
  85. .leaflet-tile-loaded {
  86. visibility: inherit;
  87. }
  88. .leaflet-zoom-box {
  89. width: 0;
  90. height: 0;
  91. -moz-box-sizing: border-box;
  92. box-sizing: border-box;
  93. z-index: 800;
  94. }
  95. /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
  96. .leaflet-overlay-pane svg {
  97. -moz-user-select: none;
  98. }
  99. .leaflet-pane { z-index: 400; }
  100. .leaflet-tile-pane { z-index: 200; }
  101. .leaflet-overlay-pane { z-index: 400; }
  102. .leaflet-shadow-pane { z-index: 500; }
  103. .leaflet-marker-pane { z-index: 600; }
  104. .leaflet-tooltip-pane { z-index: 650; }
  105. .leaflet-popup-pane { z-index: 700; }
  106. .leaflet-map-pane canvas { z-index: 100; }
  107. .leaflet-map-pane svg { z-index: 200; }
  108. .leaflet-vml-shape {
  109. width: 1px;
  110. height: 1px;
  111. }
  112. .lvml {
  113. behavior: url(#default#VML);
  114. display: inline-block;
  115. position: absolute;
  116. }
  117. /* control positioning */
  118. .leaflet-control {
  119. position: relative;
  120. z-index: 800;
  121. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  122. pointer-events: auto;
  123. }
  124. .leaflet-top,
  125. .leaflet-bottom {
  126. position: absolute;
  127. z-index: 1000;
  128. pointer-events: none;
  129. }
  130. .leaflet-top {
  131. top: 0;
  132. }
  133. .leaflet-right {
  134. right: 0;
  135. }
  136. .leaflet-bottom {
  137. bottom: 0;
  138. }
  139. .leaflet-left {
  140. left: 0;
  141. }
  142. .leaflet-control {
  143. float: left;
  144. clear: both;
  145. }
  146. .leaflet-right .leaflet-control {
  147. float: right;
  148. }
  149. .leaflet-top .leaflet-control {
  150. margin-top: 10px;
  151. }
  152. .leaflet-bottom .leaflet-control {
  153. margin-bottom: 10px;
  154. }
  155. .leaflet-left .leaflet-control {
  156. margin-left: 10px;
  157. }
  158. .leaflet-right .leaflet-control {
  159. margin-right: 10px;
  160. }
  161. /* zoom and fade animations */
  162. .leaflet-fade-anim .leaflet-popup {
  163. opacity: 0;
  164. -webkit-transition: opacity 0.2s linear;
  165. -moz-transition: opacity 0.2s linear;
  166. transition: opacity 0.2s linear;
  167. }
  168. .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  169. opacity: 1;
  170. }
  171. .leaflet-zoom-animated {
  172. -webkit-transform-origin: 0 0;
  173. -ms-transform-origin: 0 0;
  174. transform-origin: 0 0;
  175. }
  176. svg.leaflet-zoom-animated {
  177. will-change: transform;
  178. }
  179. .leaflet-zoom-anim .leaflet-zoom-animated {
  180. -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
  181. -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
  182. transition: transform 0.25s cubic-bezier(0,0,0.25,1);
  183. }
  184. .leaflet-zoom-anim .leaflet-tile,
  185. .leaflet-pan-anim .leaflet-tile {
  186. -webkit-transition: none;
  187. -moz-transition: none;
  188. transition: none;
  189. }
  190. .leaflet-zoom-anim .leaflet-zoom-hide {
  191. visibility: hidden;
  192. }
  193. /* cursors */
  194. .leaflet-interactive {
  195. cursor: pointer;
  196. }
  197. .leaflet-grab {
  198. cursor: -webkit-grab;
  199. cursor: -moz-grab;
  200. cursor: grab;
  201. }
  202. .leaflet-crosshair,
  203. .leaflet-crosshair .leaflet-interactive {
  204. cursor: crosshair;
  205. }
  206. .leaflet-popup-pane,
  207. .leaflet-control {
  208. cursor: auto;
  209. }
  210. .leaflet-dragging .leaflet-grab,
  211. .leaflet-dragging .leaflet-grab .leaflet-interactive,
  212. .leaflet-dragging .leaflet-marker-draggable {
  213. cursor: move;
  214. cursor: -webkit-grabbing;
  215. cursor: -moz-grabbing;
  216. cursor: grabbing;
  217. }
  218. /* marker & overlays interactivity */
  219. .leaflet-marker-icon,
  220. .leaflet-marker-shadow,
  221. .leaflet-image-layer,
  222. .leaflet-pane > svg path,
  223. .leaflet-tile-container {
  224. pointer-events: none;
  225. }
  226. .leaflet-marker-icon.leaflet-interactive,
  227. .leaflet-image-layer.leaflet-interactive,
  228. .leaflet-pane > svg path.leaflet-interactive,
  229. svg.leaflet-image-layer.leaflet-interactive path {
  230. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  231. pointer-events: auto;
  232. }
  233. /* visual tweaks */
  234. .leaflet-container {
  235. background: #ddd;
  236. outline-offset: 1px;
  237. }
  238. .leaflet-container a {
  239. color: #0078A8;
  240. }
  241. .leaflet-zoom-box {
  242. border: 2px dotted #38f;
  243. background: rgba(255,255,255,0.5);
  244. }
  245. /* general typography */
  246. .leaflet-container {
  247. font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  248. font-size: 12px;
  249. font-size: 0.75rem;
  250. line-height: 1.5;
  251. }
  252. /* general toolbar styles */
  253. .leaflet-bar {
  254. box-shadow: 0 1px 5px rgba(0,0,0,0.65);
  255. border-radius: 4px;
  256. }
  257. .leaflet-bar a {
  258. background-color: #fff;
  259. border-bottom: 1px solid #ccc;
  260. width: 26px;
  261. height: 26px;
  262. line-height: 26px;
  263. display: block;
  264. text-align: center;
  265. text-decoration: none;
  266. color: black;
  267. }
  268. .leaflet-bar a,
  269. .leaflet-control-layers-toggle {
  270. background-position: 50% 50%;
  271. background-repeat: no-repeat;
  272. display: block;
  273. }
  274. .leaflet-bar a:hover,
  275. .leaflet-bar a:focus {
  276. background-color: #f4f4f4;
  277. }
  278. .leaflet-bar a:first-child {
  279. border-top-left-radius: 4px;
  280. border-top-right-radius: 4px;
  281. }
  282. .leaflet-bar a:last-child {
  283. border-bottom-left-radius: 4px;
  284. border-bottom-right-radius: 4px;
  285. border-bottom: none;
  286. }
  287. .leaflet-bar a.leaflet-disabled {
  288. cursor: default;
  289. background-color: #f4f4f4;
  290. color: #bbb;
  291. }
  292. .leaflet-touch .leaflet-bar a {
  293. width: 30px;
  294. height: 30px;
  295. line-height: 30px;
  296. }
  297. .leaflet-touch .leaflet-bar a:first-child {
  298. border-top-left-radius: 2px;
  299. border-top-right-radius: 2px;
  300. }
  301. .leaflet-touch .leaflet-bar a:last-child {
  302. border-bottom-left-radius: 2px;
  303. border-bottom-right-radius: 2px;
  304. }
  305. /* zoom control */
  306. .leaflet-control-zoom-in,
  307. .leaflet-control-zoom-out {
  308. font: bold 18px 'Lucida Console', Monaco, monospace;
  309. text-indent: 1px;
  310. }
  311. .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
  312. font-size: 22px;
  313. }
  314. /* layers control */
  315. .leaflet-control-layers {
  316. box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  317. background: #fff;
  318. border-radius: 5px;
  319. }
  320. .leaflet-control-layers-toggle {
  321. background-image: url(images/layers.png);
  322. width: 36px;
  323. height: 36px;
  324. }
  325. .leaflet-retina .leaflet-control-layers-toggle {
  326. background-image: url(images/layers-2x.png);
  327. background-size: 26px 26px;
  328. }
  329. .leaflet-touch .leaflet-control-layers-toggle {
  330. width: 44px;
  331. height: 44px;
  332. }
  333. .leaflet-control-layers .leaflet-control-layers-list,
  334. .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  335. display: none;
  336. }
  337. .leaflet-control-layers-expanded .leaflet-control-layers-list {
  338. display: block;
  339. position: relative;
  340. }
  341. .leaflet-control-layers-expanded {
  342. padding: 6px 10px 6px 6px;
  343. color: #333;
  344. background: #fff;
  345. }
  346. .leaflet-control-layers-scrollbar {
  347. overflow-y: scroll;
  348. overflow-x: hidden;
  349. padding-right: 5px;
  350. }
  351. .leaflet-control-layers-selector {
  352. margin-top: 2px;
  353. position: relative;
  354. top: 1px;
  355. }
  356. .leaflet-control-layers label {
  357. display: block;
  358. font-size: 13px;
  359. font-size: 1.08333em;
  360. }
  361. .leaflet-control-layers-separator {
  362. height: 0;
  363. border-top: 1px solid #ddd;
  364. margin: 5px -10px 5px -6px;
  365. }
  366. /* Default icon URLs */
  367. .leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
  368. background-image: url(images/marker-icon.png);
  369. }
  370. /* attribution and scale controls */
  371. .leaflet-container .leaflet-control-attribution {
  372. background: #fff;
  373. background: rgba(255, 255, 255, 0.8);
  374. margin: 0;
  375. }
  376. .leaflet-control-attribution,
  377. .leaflet-control-scale-line {
  378. padding: 0 5px;
  379. color: #333;
  380. line-height: 1.4;
  381. }
  382. .leaflet-control-attribution a {
  383. text-decoration: none;
  384. }
  385. .leaflet-control-attribution a:hover,
  386. .leaflet-control-attribution a:focus {
  387. text-decoration: underline;
  388. }
  389. .leaflet-control-attribution svg {
  390. display: inline !important;
  391. }
  392. .leaflet-left .leaflet-control-scale {
  393. margin-left: 5px;
  394. }
  395. .leaflet-bottom .leaflet-control-scale {
  396. margin-bottom: 5px;
  397. }
  398. .leaflet-control-scale-line {
  399. border: 2px solid #777;
  400. border-top: none;
  401. line-height: 1.1;
  402. padding: 2px 5px 1px;
  403. white-space: nowrap;
  404. overflow: hidden;
  405. -moz-box-sizing: border-box;
  406. box-sizing: border-box;
  407. background: #fff;
  408. background: rgba(255, 255, 255, 0.5);
  409. }
  410. .leaflet-control-scale-line:not(:first-child) {
  411. border-top: 2px solid #777;
  412. border-bottom: none;
  413. margin-top: -2px;
  414. }
  415. .leaflet-control-scale-line:not(:first-child):not(:last-child) {
  416. border-bottom: 2px solid #777;
  417. }
  418. .leaflet-touch .leaflet-control-attribution,
  419. .leaflet-touch .leaflet-control-layers,
  420. .leaflet-touch .leaflet-bar {
  421. box-shadow: none;
  422. }
  423. .leaflet-touch .leaflet-control-layers,
  424. .leaflet-touch .leaflet-bar {
  425. border: 2px solid rgba(0,0,0,0.2);
  426. background-clip: padding-box;
  427. }
  428. /* popup */
  429. .leaflet-popup {
  430. position: absolute;
  431. text-align: center;
  432. margin-bottom: 20px;
  433. }
  434. .leaflet-popup-content-wrapper {
  435. padding: 1px;
  436. text-align: left;
  437. border-radius: 12px;
  438. }
  439. .leaflet-popup-content {
  440. margin: 13px 24px 13px 20px;
  441. line-height: 1.3;
  442. font-size: 13px;
  443. font-size: 1.08333em;
  444. min-height: 1px;
  445. }
  446. .leaflet-popup-content p {
  447. margin: 17px 0;
  448. margin: 1.3em 0;
  449. }
  450. .leaflet-popup-tip-container {
  451. width: 40px;
  452. height: 20px;
  453. position: absolute;
  454. left: 50%;
  455. margin-top: -1px;
  456. margin-left: -20px;
  457. overflow: hidden;
  458. pointer-events: none;
  459. }
  460. .leaflet-popup-tip {
  461. width: 17px;
  462. height: 17px;
  463. padding: 1px;
  464. margin: -10px auto 0;
  465. pointer-events: auto;
  466. -webkit-transform: rotate(45deg);
  467. -moz-transform: rotate(45deg);
  468. -ms-transform: rotate(45deg);
  469. transform: rotate(45deg);
  470. }
  471. .leaflet-popup-content-wrapper,
  472. .leaflet-popup-tip {
  473. background: white;
  474. color: #333;
  475. box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  476. }
  477. .leaflet-container a.leaflet-popup-close-button {
  478. position: absolute;
  479. top: 0;
  480. right: 0;
  481. border: none;
  482. text-align: center;
  483. width: 24px;
  484. height: 24px;
  485. font: 16px/24px Tahoma, Verdana, sans-serif;
  486. color: #757575;
  487. text-decoration: none;
  488. background: transparent;
  489. }
  490. .leaflet-container a.leaflet-popup-close-button:hover,
  491. .leaflet-container a.leaflet-popup-close-button:focus {
  492. color: #585858;
  493. }
  494. .leaflet-popup-scrolled {
  495. overflow: auto;
  496. border-bottom: 1px solid #ddd;
  497. border-top: 1px solid #ddd;
  498. }
  499. .leaflet-oldie .leaflet-popup-content-wrapper {
  500. -ms-zoom: 1;
  501. }
  502. .leaflet-oldie .leaflet-popup-tip {
  503. width: 24px;
  504. margin: 0 auto;
  505. -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  506. filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
  507. }
  508. .leaflet-oldie .leaflet-control-zoom,
  509. .leaflet-oldie .leaflet-control-layers,
  510. .leaflet-oldie .leaflet-popup-content-wrapper,
  511. .leaflet-oldie .leaflet-popup-tip {
  512. border: 1px solid #999;
  513. }
  514. /* div icon */
  515. .leaflet-div-icon {
  516. background: #fff;
  517. border: 1px solid #666;
  518. }
  519. /* Tooltip */
  520. /* Base styles for the element that has a tooltip */
  521. .leaflet-tooltip {
  522. position: absolute;
  523. padding: 6px;
  524. background-color: #fff;
  525. border: 1px solid #fff;
  526. border-radius: 3px;
  527. color: #222;
  528. white-space: nowrap;
  529. -webkit-user-select: none;
  530. -moz-user-select: none;
  531. -ms-user-select: none;
  532. user-select: none;
  533. pointer-events: none;
  534. box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  535. }
  536. .leaflet-tooltip.leaflet-interactive {
  537. cursor: pointer;
  538. pointer-events: auto;
  539. }
  540. .leaflet-tooltip-top:before,
  541. .leaflet-tooltip-bottom:before,
  542. .leaflet-tooltip-left:before,
  543. .leaflet-tooltip-right:before {
  544. position: absolute;
  545. pointer-events: none;
  546. border: 6px solid transparent;
  547. background: transparent;
  548. content: "";
  549. }
  550. /* Directions */
  551. .leaflet-tooltip-bottom {
  552. margin-top: 6px;
  553. }
  554. .leaflet-tooltip-top {
  555. margin-top: -6px;
  556. }
  557. .leaflet-tooltip-bottom:before,
  558. .leaflet-tooltip-top:before {
  559. left: 50%;
  560. margin-left: -6px;
  561. }
  562. .leaflet-tooltip-top:before {
  563. bottom: 0;
  564. margin-bottom: -12px;
  565. border-top-color: #fff;
  566. }
  567. .leaflet-tooltip-bottom:before {
  568. top: 0;
  569. margin-top: -12px;
  570. margin-left: -6px;
  571. border-bottom-color: #fff;
  572. }
  573. .leaflet-tooltip-left {
  574. margin-left: -6px;
  575. }
  576. .leaflet-tooltip-right {
  577. margin-left: 6px;
  578. }
  579. .leaflet-tooltip-left:before,
  580. .leaflet-tooltip-right:before {
  581. top: 50%;
  582. margin-top: -6px;
  583. }
  584. .leaflet-tooltip-left:before {
  585. right: 0;
  586. margin-right: -12px;
  587. border-left-color: #fff;
  588. }
  589. .leaflet-tooltip-right:before {
  590. left: 0;
  591. margin-left: -12px;
  592. border-right-color: #fff;
  593. }
  594. /* Printing */
  595. @media print {
  596. /* Prevent printers from removing background-images of controls. */
  597. .leaflet-control {
  598. -webkit-print-color-adjust: exact;
  599. color-adjust: exact;
  600. }
  601. }