leaflet.css 14 KB

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