leaflet.css 13 KB

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