leaflet.css 15 KB

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