leaflet.css 13 KB

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