leaflet.css 13 KB

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