leaflet.css 13 KB

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