leaflet.css 15 KB

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