leaflet.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  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. .leaflet-container .leaflet-tile {
  49. max-width: none !important;
  50. max-height: none !important;
  51. }
  52. .leaflet-container.leaflet-touch-zoom {
  53. -ms-touch-action: pan-x pan-y;
  54. touch-action: pan-x pan-y;
  55. }
  56. .leaflet-container.leaflet-touch-drag {
  57. -ms-touch-action: pinch-zoom;
  58. /* Fallback for FF which doesn't support pinch-zoom */
  59. touch-action: none;
  60. touch-action: pinch-zoom;
  61. }
  62. .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  63. -ms-touch-action: none;
  64. touch-action: none;
  65. }
  66. .leaflet-container {
  67. -webkit-tap-highlight-color: transparent;
  68. }
  69. .leaflet-container a {
  70. -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
  71. }
  72. .leaflet-tile {
  73. filter: inherit;
  74. visibility: hidden;
  75. }
  76. .leaflet-tile-loaded {
  77. visibility: inherit;
  78. }
  79. .leaflet-zoom-box {
  80. width: 0;
  81. height: 0;
  82. -moz-box-sizing: border-box;
  83. box-sizing: border-box;
  84. z-index: 800;
  85. }
  86. /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
  87. .leaflet-overlay-pane svg {
  88. -moz-user-select: none;
  89. }
  90. .leaflet-pane { z-index: 400; }
  91. .leaflet-tile-pane { z-index: 200; }
  92. .leaflet-overlay-pane { z-index: 400; }
  93. .leaflet-shadow-pane { z-index: 500; }
  94. .leaflet-marker-pane { z-index: 600; }
  95. .leaflet-tooltip-pane { z-index: 650; }
  96. .leaflet-popup-pane { z-index: 700; }
  97. .leaflet-map-pane canvas { z-index: 100; }
  98. .leaflet-map-pane svg { z-index: 200; }
  99. .leaflet-vml-shape {
  100. width: 1px;
  101. height: 1px;
  102. }
  103. .lvml {
  104. behavior: url(#default#VML);
  105. display: inline-block;
  106. position: absolute;
  107. }
  108. /* control positioning */
  109. .leaflet-control {
  110. position: relative;
  111. z-index: 800;
  112. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  113. pointer-events: auto;
  114. }
  115. .leaflet-top,
  116. .leaflet-bottom {
  117. position: absolute;
  118. z-index: 1000;
  119. pointer-events: none;
  120. }
  121. .leaflet-top {
  122. top: 0;
  123. }
  124. .leaflet-right {
  125. right: 0;
  126. }
  127. .leaflet-bottom {
  128. bottom: 0;
  129. }
  130. .leaflet-left {
  131. left: 0;
  132. }
  133. .leaflet-control {
  134. float: left;
  135. clear: both;
  136. }
  137. .leaflet-right .leaflet-control {
  138. float: right;
  139. }
  140. .leaflet-top .leaflet-control {
  141. margin-top: 10px;
  142. }
  143. .leaflet-bottom .leaflet-control {
  144. margin-bottom: 10px;
  145. }
  146. .leaflet-left .leaflet-control {
  147. margin-left: 10px;
  148. }
  149. .leaflet-right .leaflet-control {
  150. margin-right: 10px;
  151. }
  152. /* zoom and fade animations */
  153. .leaflet-fade-anim .leaflet-tile {
  154. will-change: opacity;
  155. }
  156. .leaflet-fade-anim .leaflet-popup {
  157. opacity: 0;
  158. -webkit-transition: opacity 0.2s linear;
  159. -moz-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. transition: transform 0.25s cubic-bezier(0,0,0.25,1);
  177. }
  178. .leaflet-zoom-anim .leaflet-tile,
  179. .leaflet-pan-anim .leaflet-tile {
  180. -webkit-transition: none;
  181. -moz-transition: none;
  182. transition: none;
  183. }
  184. .leaflet-zoom-anim .leaflet-zoom-hide {
  185. visibility: hidden;
  186. }
  187. /* cursors */
  188. .leaflet-interactive {
  189. cursor: pointer;
  190. }
  191. .leaflet-grab {
  192. cursor: -webkit-grab;
  193. cursor: -moz-grab;
  194. cursor: grab;
  195. }
  196. .leaflet-crosshair,
  197. .leaflet-crosshair .leaflet-interactive {
  198. cursor: crosshair;
  199. }
  200. .leaflet-popup-pane,
  201. .leaflet-control {
  202. cursor: auto;
  203. }
  204. .leaflet-dragging .leaflet-grab,
  205. .leaflet-dragging .leaflet-grab .leaflet-interactive,
  206. .leaflet-dragging .leaflet-marker-draggable {
  207. cursor: move;
  208. cursor: -webkit-grabbing;
  209. cursor: -moz-grabbing;
  210. cursor: 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. margin: 13px 19px;
  432. line-height: 1.4;
  433. }
  434. .leaflet-popup-content p {
  435. margin: 18px 0;
  436. }
  437. .leaflet-popup-tip-container {
  438. width: 40px;
  439. height: 20px;
  440. position: absolute;
  441. left: 50%;
  442. margin-left: -20px;
  443. overflow: hidden;
  444. pointer-events: none;
  445. }
  446. .leaflet-popup-tip {
  447. width: 17px;
  448. height: 17px;
  449. padding: 1px;
  450. margin: -10px auto 0;
  451. -webkit-transform: rotate(45deg);
  452. -moz-transform: rotate(45deg);
  453. -ms-transform: rotate(45deg);
  454. transform: rotate(45deg);
  455. }
  456. .leaflet-popup-content-wrapper,
  457. .leaflet-popup-tip {
  458. background: white;
  459. color: #333;
  460. box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  461. }
  462. .leaflet-container a.leaflet-popup-close-button {
  463. position: absolute;
  464. top: 0;
  465. right: 0;
  466. padding: 4px 4px 0 0;
  467. border: none;
  468. text-align: center;
  469. width: 18px;
  470. height: 14px;
  471. font: 16px/14px Tahoma, Verdana, sans-serif;
  472. color: #c3c3c3;
  473. text-decoration: none;
  474. font-weight: bold;
  475. background: transparent;
  476. }
  477. .leaflet-container a.leaflet-popup-close-button:hover {
  478. color: #999;
  479. }
  480. .leaflet-popup-scrolled {
  481. overflow: auto;
  482. border-bottom: 1px solid #ddd;
  483. border-top: 1px solid #ddd;
  484. }
  485. .leaflet-oldie .leaflet-popup-content-wrapper {
  486. zoom: 1;
  487. }
  488. .leaflet-oldie .leaflet-popup-tip {
  489. width: 24px;
  490. margin: 0 auto;
  491. -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  492. filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
  493. }
  494. .leaflet-oldie .leaflet-popup-tip-container {
  495. margin-top: -1px;
  496. }
  497. .leaflet-oldie .leaflet-control-zoom,
  498. .leaflet-oldie .leaflet-control-layers,
  499. .leaflet-oldie .leaflet-popup-content-wrapper,
  500. .leaflet-oldie .leaflet-popup-tip {
  501. border: 1px solid #999;
  502. }
  503. /* div icon */
  504. .leaflet-div-icon {
  505. background: #fff;
  506. border: 1px solid #666;
  507. }
  508. /* Tooltip */
  509. /* Base styles for the element that has a tooltip */
  510. .leaflet-tooltip {
  511. position: absolute;
  512. padding: 6px;
  513. background-color: #fff;
  514. border: 1px solid #fff;
  515. border-radius: 3px;
  516. color: #222;
  517. white-space: nowrap;
  518. -webkit-user-select: none;
  519. -moz-user-select: none;
  520. -ms-user-select: none;
  521. user-select: none;
  522. pointer-events: none;
  523. box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  524. }
  525. .leaflet-tooltip.leaflet-clickable {
  526. cursor: pointer;
  527. pointer-events: auto;
  528. }
  529. .leaflet-tooltip-top:before,
  530. .leaflet-tooltip-bottom:before,
  531. .leaflet-tooltip-left:before,
  532. .leaflet-tooltip-right:before {
  533. position: absolute;
  534. pointer-events: none;
  535. border: 6px solid transparent;
  536. background: transparent;
  537. content: "";
  538. }
  539. /* Directions */
  540. .leaflet-tooltip-bottom {
  541. margin-top: 6px;
  542. }
  543. .leaflet-tooltip-top {
  544. margin-top: -6px;
  545. }
  546. .leaflet-tooltip-bottom:before,
  547. .leaflet-tooltip-top:before {
  548. left: 50%;
  549. margin-left: -6px;
  550. }
  551. .leaflet-tooltip-top:before {
  552. bottom: 0;
  553. margin-bottom: -12px;
  554. border-top-color: #fff;
  555. }
  556. .leaflet-tooltip-bottom:before {
  557. top: 0;
  558. margin-top: -12px;
  559. margin-left: -6px;
  560. border-bottom-color: #fff;
  561. }
  562. .leaflet-tooltip-left {
  563. margin-left: -6px;
  564. }
  565. .leaflet-tooltip-right {
  566. margin-left: 6px;
  567. }
  568. .leaflet-tooltip-left:before,
  569. .leaflet-tooltip-right:before {
  570. top: 50%;
  571. margin-top: -6px;
  572. }
  573. .leaflet-tooltip-left:before {
  574. right: 0;
  575. margin-right: -12px;
  576. border-left-color: #fff;
  577. }
  578. .leaflet-tooltip-right:before {
  579. left: 0;
  580. margin-left: -12px;
  581. border-right-color: #fff;
  582. }