leaflet.css 14 KB

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