leaflet.css 13 KB

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