leaflet.css 13 KB

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