--- step-4/index.html 2023-07-02 13:20:09.119154723 +0000
+++ step-5/index.html 2023-07-02 13:20:09.119154723 +0000
@@ -1,8 +1,20 @@
<html>
<head>
- <title>Step 4: unfolding the overview map by default</title>
+ <title>Step 5: moving the attribution text</title>
<script src="../OpenLayers.js"></script>
<script src="../OpenStreetMap.js"></script>
+ <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
+
+ <style type="text/css">
+ .olControlAttribution {
+ bottom: 0px;
+ right: 220px;
+ background-color:white;
+ padding: 4px;
+ opacity: 0.60;
+ }
+ </style>
+
<script>
function init() {
lat = 52.025;
@@ -15,9 +27,9 @@
overviewMap = new OpenLayers.Control.OverviewMap();
map = new OpenLayers.Map("demoMap",
- { controls: [ new OpenLayers.Control.Navigation(), // direct panning via mouse drag
+ { theme: null,
+ controls: [ new OpenLayers.Control.Navigation(), // direct panning via mouse drag
new OpenLayers.Control.Attribution(), // attribution text
- new OpenLayers.Control.MousePosition(), // where am i?
new OpenLayers.Control.PanZoomBar(), // larger navigation control
overviewMap // overview map
]