openlayers_style.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. div.olMap {
  2. z-index: 0;
  3. padding: 0 !important;
  4. margin: 0 !important;
  5. cursor: default;
  6. }
  7. div.olMapViewport {
  8. text-align: left;
  9. }
  10. div.olLayerDiv {
  11. -moz-user-select: none;
  12. -khtml-user-select: none;
  13. }
  14. .olLayerGoogleCopyright {
  15. left: 2px;
  16. bottom: 2px;
  17. }
  18. .olLayerGoogleV3.olLayerGoogleCopyright {
  19. right: auto !important;
  20. }
  21. .olLayerGooglePoweredBy {
  22. left: 2px;
  23. bottom: 15px;
  24. }
  25. .olLayerGoogleV3.olLayerGooglePoweredBy {
  26. bottom: 15px !important;
  27. }
  28. .olControlAttribution {
  29. font-size: smaller;
  30. right: 3px;
  31. bottom: 4.5em;
  32. position: absolute;
  33. display: block;
  34. }
  35. .olControlScale {
  36. right: 3px;
  37. bottom: 3em;
  38. display: block;
  39. position: absolute;
  40. font-size: smaller;
  41. }
  42. .olControlScaleLine {
  43. display: block;
  44. position: absolute;
  45. left: 10px;
  46. bottom: 15px;
  47. font-size: xx-small;
  48. }
  49. .olControlScaleLineBottom {
  50. border: solid 2px black;
  51. border-bottom: none;
  52. margin-top:-2px;
  53. text-align: center;
  54. }
  55. .olControlScaleLineTop {
  56. border: solid 2px black;
  57. border-top: none;
  58. text-align: center;
  59. }
  60. .olControlPermalink {
  61. right: 3px;
  62. bottom: 1.5em;
  63. display: block;
  64. position: absolute;
  65. font-size: smaller;
  66. }
  67. div.olControlMousePosition {
  68. bottom: 0;
  69. right: 3px;
  70. display: block;
  71. position: absolute;
  72. font-family: Arial;
  73. font-size: smaller;
  74. }
  75. .olControlOverviewMapContainer {
  76. position: absolute;
  77. bottom: 0;
  78. right: 0;
  79. }
  80. .olControlOverviewMapElement {
  81. padding: 10px 18px 10px 10px;
  82. background-color: #00008B;
  83. -moz-border-radius: 1em 0 0 0;
  84. }
  85. .olControlOverviewMapMinimizeButton,
  86. .olControlOverviewMapMaximizeButton {
  87. height: 18px;
  88. width: 18px;
  89. right: 0;
  90. bottom: 80px;
  91. cursor: pointer;
  92. }
  93. .olControlOverviewMapExtentRectangle {
  94. overflow: hidden;
  95. background-image: url("img/blank.gif");
  96. cursor: move;
  97. border: 2px dotted red;
  98. }
  99. .olControlOverviewMapRectReplacement {
  100. overflow: hidden;
  101. cursor: move;
  102. background-image: url("img/overview_replacement.gif");
  103. background-repeat: no-repeat;
  104. background-position: center;
  105. }
  106. .olLayerGeoRSSDescription {
  107. float:left;
  108. width:100%;
  109. overflow:auto;
  110. font-size:1.0em;
  111. }
  112. .olLayerGeoRSSClose {
  113. float:right;
  114. color:gray;
  115. font-size:1.2em;
  116. margin-right:6px;
  117. font-family:sans-serif;
  118. }
  119. .olLayerGeoRSSTitle {
  120. float:left;font-size:1.2em;
  121. }
  122. .olPopupContent {
  123. padding:5px;
  124. overflow: auto;
  125. }
  126. .olControlNavigationHistory {
  127. background-image: url("img/navigation_history.png");
  128. background-repeat: no-repeat;
  129. width: 24px;
  130. height: 24px;
  131. }
  132. .olControlNavigationHistoryPreviousItemActive {
  133. background-position: 0 0;
  134. }
  135. .olControlNavigationHistoryPreviousItemInactive {
  136. background-position: 0 -24px;
  137. }
  138. .olControlNavigationHistoryNextItemActive {
  139. background-position: -24px 0;
  140. }
  141. .olControlNavigationHistoryNextItemInactive {
  142. background-position: -24px -24px;
  143. }
  144. div.olControlSaveFeaturesItemActive {
  145. background-image: url(img/save_features_on.png);
  146. background-repeat: no-repeat;
  147. background-position: 0 1px;
  148. }
  149. div.olControlSaveFeaturesItemInactive {
  150. background-image: url(img/save_features_off.png);
  151. background-repeat: no-repeat;
  152. background-position: 0 1px;
  153. }
  154. .olHandlerBoxZoomBox {
  155. border: 2px solid red;
  156. position: absolute;
  157. background-color: white;
  158. opacity: 0.50;
  159. font-size: 1px;
  160. filter: alpha(opacity=50);
  161. }
  162. .olHandlerBoxSelectFeature {
  163. border: 2px solid blue;
  164. position: absolute;
  165. background-color: white;
  166. opacity: 0.50;
  167. font-size: 1px;
  168. filter: alpha(opacity=50);
  169. }
  170. .olControlPanPanel {
  171. top: 10px;
  172. left: 5px;
  173. }
  174. .olControlPanPanel div {
  175. background-image: url(img/pan-panel.png);
  176. height: 18px;
  177. width: 18px;
  178. cursor: pointer;
  179. position: absolute;
  180. }
  181. .olControlPanPanel .olControlPanNorthItemInactive {
  182. top: 0;
  183. left: 9px;
  184. background-position: 0 0;
  185. }
  186. .olControlPanPanel .olControlPanSouthItemInactive {
  187. top: 36px;
  188. left: 9px;
  189. background-position: 18px 0;
  190. }
  191. .olControlPanPanel .olControlPanWestItemInactive {
  192. position: absolute;
  193. top: 18px;
  194. left: 0;
  195. background-position: 0 18px;
  196. }
  197. .olControlPanPanel .olControlPanEastItemInactive {
  198. top: 18px;
  199. left: 18px;
  200. background-position: 18px 18px;
  201. }
  202. .olControlZoomPanel {
  203. top: 71px;
  204. left: 14px;
  205. }
  206. .olControlZoomPanel div {
  207. background-image: url(img/zoom-panel.png);
  208. position: absolute;
  209. height: 18px;
  210. width: 18px;
  211. cursor: pointer;
  212. }
  213. .olControlZoomPanel .olControlZoomInItemInactive {
  214. top: 0;
  215. left: 0;
  216. background-position: 0 0;
  217. }
  218. .olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
  219. top: 18px;
  220. left: 0;
  221. background-position: 0 -18px;
  222. }
  223. .olControlZoomPanel .olControlZoomOutItemInactive {
  224. top: 36px;
  225. left: 0;
  226. background-position: 0 18px;
  227. }
  228. /*
  229. * When a potential text is bigger than the image it move the image
  230. * with some headers (closes #3154)
  231. */
  232. .olControlPanZoomBar div {
  233. font-size: 1px;
  234. }
  235. .olPopupCloseBox {
  236. background: url("img/close.gif") no-repeat;
  237. cursor: pointer;
  238. }
  239. .olFramedCloudPopupContent {
  240. padding: 5px;
  241. overflow: auto;
  242. }
  243. .olControlNoSelect {
  244. -moz-user-select: none;
  245. -khtml-user-select: none;
  246. }
  247. .olImageLoadError {
  248. background-color: pink;
  249. opacity: 0.5;
  250. filter: alpha(opacity=50); /* IE */
  251. }
  252. /**
  253. * Cursor styles
  254. */
  255. .olCursorWait {
  256. cursor: wait;
  257. }
  258. .olDragDown {
  259. cursor: move;
  260. }
  261. .olDrawBox {
  262. cursor: crosshair;
  263. }
  264. .olControlDragFeatureOver {
  265. cursor: move;
  266. }
  267. .olControlDragFeatureActive.olControlDragFeatureOver.olDragDown {
  268. cursor: -moz-grabbing;
  269. }
  270. /**
  271. * Layer switcher
  272. */
  273. .olControlLayerSwitcher {
  274. position: absolute;
  275. top: 25px;
  276. right: 0;
  277. width: 20em;
  278. font-family: sans-serif;
  279. font-weight: bold;
  280. margin-top: 3px;
  281. margin-left: 3px;
  282. margin-bottom: 3px;
  283. font-size: smaller;
  284. color: white;
  285. background-color: transparent;
  286. }
  287. .olControlLayerSwitcher .layersDiv {
  288. padding-top: 5px;
  289. padding-left: 10px;
  290. padding-bottom: 5px;
  291. padding-right: 10px;
  292. background-color: darkblue;
  293. }
  294. .olControlLayerSwitcher .layersDiv .baseLbl,
  295. .olControlLayerSwitcher .layersDiv .dataLbl {
  296. margin-top: 3px;
  297. margin-left: 3px;
  298. margin-bottom: 3px;
  299. }
  300. .olControlLayerSwitcher .layersDiv .baseLayersDiv,
  301. .olControlLayerSwitcher .layersDiv .dataLayersDiv {
  302. padding-left: 10px;
  303. }
  304. .olControlLayerSwitcher .maximizeDiv,
  305. .olControlLayerSwitcher .minimizeDiv {
  306. width: 18px;
  307. height: 18px;
  308. top: 5px;
  309. right: 0;
  310. cursor: pointer;
  311. }
  312. .olBingAttribution {
  313. color: #DDD;
  314. }
  315. .olBingAttribution.road {
  316. color: #333;
  317. }
  318. .olGoogleAttribution.hybrid, .olGoogleAttribution.satellite {
  319. color: #EEE;
  320. }
  321. .olGoogleAttribution {
  322. color: #333;
  323. }
  324. span.olGoogleAttribution a {
  325. color: #77C;
  326. }
  327. span.olGoogleAttribution.hybrid a, span.olGoogleAttribution.satellite a {
  328. color: #EEE;
  329. }
  330. /**
  331. * Editing and navigation icons.
  332. * (using the editing_tool_bar.png sprint image)
  333. */
  334. .olControlNavToolbar ,
  335. .olControlEditingToolbar {
  336. margin: 5px 5px 0 0;
  337. }
  338. .olControlNavToolbar div,
  339. .olControlEditingToolbar div {
  340. background-image: url("img/editing_tool_bar.png");
  341. background-repeat: no-repeat;
  342. margin: 0 0 5px 5px;
  343. width: 24px;
  344. height: 22px;
  345. cursor: pointer
  346. }
  347. /* positions */
  348. .olControlEditingToolbar {
  349. right: 26px;
  350. top: 0;
  351. }
  352. .olControlNavToolbar {
  353. top: 295px;
  354. left: 9px;
  355. }
  356. /* layouts */
  357. .olControlEditingToolbar div {
  358. float: right;
  359. }
  360. /* individual controls */
  361. .olControlNavToolbar .olControlNavigationItemInactive,
  362. .olControlEditingToolbar .olControlNavigationItemInactive {
  363. background-position: -103px -1px;
  364. }
  365. .olControlNavToolbar .olControlNavigationItemActive ,
  366. .olControlEditingToolbar .olControlNavigationItemActive {
  367. background-position: -103px -24px;
  368. }
  369. .olControlNavToolbar .olControlZoomBoxItemInactive {
  370. background-position: -128px -1px;
  371. }
  372. .olControlNavToolbar .olControlZoomBoxItemActive {
  373. background-position: -128px -24px;
  374. }
  375. .olControlEditingToolbar .olControlDrawFeaturePointItemInactive {
  376. background-position: -77px -1px;
  377. }
  378. .olControlEditingToolbar .olControlDrawFeaturePointItemActive {
  379. background-position: -77px -24px;
  380. }
  381. .olControlEditingToolbar .olControlDrawFeaturePathItemInactive {
  382. background-position: -51px -1px;
  383. }
  384. .olControlEditingToolbar .olControlDrawFeaturePathItemActive {
  385. background-position: -51px -24px;
  386. }
  387. .olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive{
  388. background-position: -26px -1px;
  389. }
  390. .olControlEditingToolbar .olControlDrawFeaturePolygonItemActive {
  391. background-position: -26px -24px;
  392. }
  393. div.olControlZoom {
  394. position: absolute;
  395. top: 8px;
  396. left: 8px;
  397. background: rgba(255,255,255,0.4);
  398. border-radius: 4px;
  399. padding: 2px;
  400. }
  401. div.olControlZoom a {
  402. display: block;
  403. margin: 1px;
  404. padding: 0;
  405. color: white;
  406. font-size: 18px;
  407. font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
  408. font-weight: bold;
  409. text-decoration: none;
  410. text-align: center;
  411. height: 22px;
  412. width:22px;
  413. line-height: 19px;
  414. background: #130085; /* fallback for IE - IE6 requires background shorthand*/
  415. background: rgba(0, 60, 136, 0.5);
  416. filter: alpha(opacity=80);
  417. }
  418. div.olControlZoom a:hover {
  419. background: #130085; /* fallback for IE */
  420. background: rgba(0, 60, 136, 0.7);
  421. filter: alpha(opacity=100);
  422. }
  423. @media only screen and (max-width: 600px) {
  424. div.olControlZoom a:hover {
  425. background: rgba(0, 60, 136, 0.5);
  426. }
  427. }
  428. a.olControlZoomIn {
  429. border-radius: 4px 4px 0 0;
  430. }
  431. a.olControlZoomOut {
  432. border-radius: 0 0 4px 4px;
  433. }
  434. /**
  435. * Animations
  436. */
  437. .olLayerGrid .olTileImage {
  438. -webkit-transition: opacity 0.2s linear;
  439. -moz-transition: opacity 0.2s linear;
  440. -o-transition: opacity 0.2s linear;
  441. transition: opacity 0.2s linear;
  442. }