diff options
| author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-07 23:47:34 +0000 |
|---|---|---|
| committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-07 23:47:34 +0000 |
| commit | da1bc95c350b87246165f61aff33a14558d56190 (patch) | |
| tree | 62d155e24dc6c99ff1eebfdcfd8f94d8d8bc9763 /static | |
| parent | 1b266517ca627bc9f59347657cc65f0a4694436e (diff) | |
| download | Chimère-da1bc95c350b87246165f61aff33a14558d56190.tar.bz2 Chimère-da1bc95c350b87246165f61aff33a14558d56190.zip | |
Work on IE compatibility...
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@7 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'static')
| -rw-r--r-- | static/edit_map.js | 5 | ||||
| -rw-r--r-- | static/main_map.js | 4 | ||||
| -rw-r--r-- | static/styles.css | 21 |
3 files changed, 24 insertions, 6 deletions
diff --git a/static/edit_map.js b/static/edit_map.js index 05b3a24..b43db42 100644 --- a/static/edit_map.js +++ b/static/edit_map.js @@ -18,6 +18,8 @@ See the file COPYING for details. /* map edit */ +var map; + /* availaible map layers */ var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Mapnik'); var layerMarkers = new OpenLayers.Layer.Markers('POIs'); @@ -30,7 +32,7 @@ var icon = new OpenLayers.Icon('http://www.openlayers.org/dev/img/marker.png', s /* set a marker with a click on the map */ var setMarker = function (event){ event = event || window.event; - lonlat = layerMarkers.getLonLatFromViewPortPx(event.xy); + var lonlat = layerMarkers.getLonLatFromViewPortPx(event.xy); putMarker(lonlat); OpenLayers.Event.stop(event); } @@ -66,7 +68,6 @@ function init(){ map.addLayers([layerMapnik, layerMarkers]); map.events.register('click', map, setMarker); map.setCenter(centerLonLat, 12); - } diff --git a/static/main_map.js b/static/main_map.js index 93f64ad..4a9e684 100644 --- a/static/main_map.js +++ b/static/main_map.js @@ -29,6 +29,8 @@ function hide(id){ document.getElementById(id).style.display = 'None'; } +var map; + /* availaible map layers */ var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Classic'); var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle map", { @@ -185,7 +187,7 @@ function setDetail(response){ /* main initialisation function */ function init(){ /* set the main map */ - map = new OpenLayers.Map ('map', { + map = new OpenLayers.Map('map', { controls:[new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.ScaleLine()], diff --git a/static/styles.css b/static/styles.css index 0942301..205521e 100644 --- a/static/styles.css +++ b/static/styles.css @@ -59,6 +59,7 @@ border-bottom:1px solid black; #action li{ display:inline; padding:3px; +padding-top:0px; margin-right:6px; border:1px solid black; -moz-border-radius: 4px 4px 0 0; @@ -138,7 +139,6 @@ bottom:38px; right:18px; width:300px; background-color:#FFF; -opacity:0.8; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; @@ -149,6 +149,10 @@ overflow:auto; height:90%; } +#detail_content img{ +width:280px; +} + #detail_footer{ text-align:center; } @@ -161,14 +165,25 @@ text-decoration:None; } #map{ -border: 1px solid black; position:absolute; +border: 1px solid black; +margin:0px; +padding:0px; +height:92%; top:40px; bottom:8px; left:8px; right:8px; } +#permalink { +z-index:10000; +position:absolute; +bottom:50px; +left:12px; +font-size:smaller; +} + .news{ } @@ -215,4 +230,4 @@ font-weight:bold; .fieldWrapper{ padding:6px; -}
\ No newline at end of file +} |
