leaflet.css 13 KB

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