leaflet.css 13 KB

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