]> git.openstreetmap.org Git - rails.git/commitdiff
Add missing CSS and image resources from OpenLayers 2.4 release and
authorTom Hughes <tom@compton.nu>
Wed, 20 Jun 2007 00:06:02 +0000 (00:06 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Jun 2007 00:06:02 +0000 (00:06 +0000)
reorganise things to keep OpenLayers stuff together.

62 files changed:
app/views/site/index.rhtml
public/img/drag-rectangle-off.png [deleted file]
public/img/drag-rectangle-on.png [deleted file]
public/javascripts/img/east-mini.png [deleted file]
public/javascripts/img/marker-blue.png [deleted file]
public/javascripts/img/marker-green.png [deleted file]
public/javascripts/img/marker-yellow.png [deleted file]
public/javascripts/img/marker.png [deleted file]
public/javascripts/img/measuring-stick-off.png [deleted file]
public/javascripts/img/measuring-stick-on.png [deleted file]
public/javascripts/img/north-mini.png [deleted file]
public/javascripts/img/slider.png [deleted file]
public/javascripts/img/south-mini.png [deleted file]
public/javascripts/img/west-mini.png [deleted file]
public/javascripts/img/zoom-minus-mini.png [deleted file]
public/javascripts/img/zoom-plus-mini.png [deleted file]
public/javascripts/img/zoom-world-mini.png [deleted file]
public/javascripts/img/zoombar.png [deleted file]
public/openlayers/OpenLayers.js [moved from public/javascripts/OpenLayers.js with 100% similarity]
public/openlayers/img/404.png [moved from public/javascripts/img/404.png with 100% similarity]
public/openlayers/img/blank.gif [new file with mode: 0644]
public/openlayers/img/close.gif [new file with mode: 0644]
public/openlayers/img/drag-rectangle-off.png [moved from public/javascripts/img/drag-rectangle-off.png with 100% similarity]
public/openlayers/img/drag-rectangle-on.png [moved from public/javascripts/img/drag-rectangle-on.png with 100% similarity]
public/openlayers/img/east-mini.png [moved from public/img/east-mini.png with 100% similarity]
public/openlayers/img/layer-switcher-maximize.png [moved from public/javascripts/img/layer-switcher-maximize.png with 100% similarity]
public/openlayers/img/layer-switcher-minimize.png [moved from public/javascripts/img/layer-switcher-minimize.png with 100% similarity]
public/openlayers/img/marker-blue.png [new file with mode: 0644]
public/openlayers/img/marker-gold.png [new file with mode: 0644]
public/openlayers/img/marker-green.png [new file with mode: 0644]
public/openlayers/img/marker.png [moved from public/img/marker.png with 100% similarity]
public/openlayers/img/measuring-stick-off.png [moved from public/img/measuring-stick-off.png with 100% similarity]
public/openlayers/img/measuring-stick-on.png [moved from public/img/measuring-stick-on.png with 100% similarity]
public/openlayers/img/north-mini.png [moved from public/img/north-mini.png with 100% similarity]
public/openlayers/img/panning-hand-off.png [moved from public/img/panning-hand-off.png with 100% similarity]
public/openlayers/img/panning-hand-on.png [moved from public/img/panning-hand-on.png with 100% similarity]
public/openlayers/img/slider.png [moved from public/img/slider.png with 100% similarity]
public/openlayers/img/south-mini.png [moved from public/img/south-mini.png with 100% similarity]
public/openlayers/img/west-mini.png [moved from public/img/west-mini.png with 100% similarity]
public/openlayers/img/zoom-minus-mini.png [moved from public/img/zoom-minus-mini.png with 100% similarity]
public/openlayers/img/zoom-plus-mini.png [moved from public/img/zoom-plus-mini.png with 100% similarity]
public/openlayers/img/zoom-world-mini.png [moved from public/img/zoom-world-mini.png with 100% similarity]
public/openlayers/img/zoombar.png [moved from public/img/zoombar.png with 100% similarity]
public/openlayers/theme/default/img/add_point_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/add_point_on.png [new file with mode: 0644]
public/openlayers/theme/default/img/drag-rectangle-off.png [new file with mode: 0644]
public/openlayers/theme/default/img/drag-rectangle-on.png [new file with mode: 0644]
public/openlayers/theme/default/img/draw_line_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/draw_line_on.png [new file with mode: 0644]
public/openlayers/theme/default/img/draw_point_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/draw_point_on.png [new file with mode: 0644]
public/openlayers/theme/default/img/draw_polygon_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/draw_polygon_on.png [new file with mode: 0644]
public/openlayers/theme/default/img/move_feature_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/move_feature_on.png [new file with mode: 0644]
public/openlayers/theme/default/img/pan_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/pan_on.png [new file with mode: 0644]
public/openlayers/theme/default/img/panning-hand-off.png [moved from public/javascripts/img/panning-hand-off.png with 100% similarity]
public/openlayers/theme/default/img/panning-hand-on.png [moved from public/javascripts/img/panning-hand-on.png with 100% similarity]
public/openlayers/theme/default/img/remove_point_off.png [new file with mode: 0644]
public/openlayers/theme/default/img/remove_point_on.png [new file with mode: 0644]
public/openlayers/theme/default/style.css [new file with mode: 0644]

index 35b91397986afdba0f8d655e5919f66f37d1aa4c..bb730c448e923dfcfca15309ed80b46f2826958d 100644 (file)
@@ -45,7 +45,7 @@
   <%end%>
 
 </script>
-<script type="text/javascript" src="/javascripts/OpenLayers.js"></script>
+<script type="text/javascript" src="/openlayers/OpenLayers.js"></script>
 
 <script type="text/javascript">
   <!--
@@ -55,7 +55,7 @@
   function init(){
 
     OpenLayers.Util.onImageLoadError = function() {
-      this.src = "http://www.openstreetmap.org/javascripts/img/404.png";
+      this.src = OpenLayers.Util.getImagesLocation + "404.png";
     }
     map = new OpenLayers.Map( "map", 
         {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), numZoomLevels:19, maxResolution:156543, units:'meters', projection: "EPSG:41001"} );
@@ -74,6 +74,7 @@
     markers.addMarker(marker);
     <%end%>
 
+    map.setOptions({theme:''});
     map.addControl(new OpenLayers.Control.LayerSwitcher());
     map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
 
diff --git a/public/img/drag-rectangle-off.png b/public/img/drag-rectangle-off.png
deleted file mode 100644 (file)
index 620942b..0000000
Binary files a/public/img/drag-rectangle-off.png and /dev/null differ
diff --git a/public/img/drag-rectangle-on.png b/public/img/drag-rectangle-on.png
deleted file mode 100644 (file)
index 236cb75..0000000
Binary files a/public/img/drag-rectangle-on.png and /dev/null differ
diff --git a/public/javascripts/img/east-mini.png b/public/javascripts/img/east-mini.png
deleted file mode 100644 (file)
index 0707567..0000000
Binary files a/public/javascripts/img/east-mini.png and /dev/null differ
diff --git a/public/javascripts/img/marker-blue.png b/public/javascripts/img/marker-blue.png
deleted file mode 100644 (file)
index 0bac8c0..0000000
Binary files a/public/javascripts/img/marker-blue.png and /dev/null differ
diff --git a/public/javascripts/img/marker-green.png b/public/javascripts/img/marker-green.png
deleted file mode 100644 (file)
index c91ccbe..0000000
Binary files a/public/javascripts/img/marker-green.png and /dev/null differ
diff --git a/public/javascripts/img/marker-yellow.png b/public/javascripts/img/marker-yellow.png
deleted file mode 100644 (file)
index 724e2c0..0000000
Binary files a/public/javascripts/img/marker-yellow.png and /dev/null differ
diff --git a/public/javascripts/img/marker.png b/public/javascripts/img/marker.png
deleted file mode 100644 (file)
index ccd1913..0000000
Binary files a/public/javascripts/img/marker.png and /dev/null differ
diff --git a/public/javascripts/img/measuring-stick-off.png b/public/javascripts/img/measuring-stick-off.png
deleted file mode 100644 (file)
index 70c2dff..0000000
Binary files a/public/javascripts/img/measuring-stick-off.png and /dev/null differ
diff --git a/public/javascripts/img/measuring-stick-on.png b/public/javascripts/img/measuring-stick-on.png
deleted file mode 100644 (file)
index cdb8f34..0000000
Binary files a/public/javascripts/img/measuring-stick-on.png and /dev/null differ
diff --git a/public/javascripts/img/north-mini.png b/public/javascripts/img/north-mini.png
deleted file mode 100644 (file)
index a8a0b40..0000000
Binary files a/public/javascripts/img/north-mini.png and /dev/null differ
diff --git a/public/javascripts/img/slider.png b/public/javascripts/img/slider.png
deleted file mode 100644 (file)
index 23afd57..0000000
Binary files a/public/javascripts/img/slider.png and /dev/null differ
diff --git a/public/javascripts/img/south-mini.png b/public/javascripts/img/south-mini.png
deleted file mode 100644 (file)
index 6c4ac8a..0000000
Binary files a/public/javascripts/img/south-mini.png and /dev/null differ
diff --git a/public/javascripts/img/west-mini.png b/public/javascripts/img/west-mini.png
deleted file mode 100644 (file)
index db5f420..0000000
Binary files a/public/javascripts/img/west-mini.png and /dev/null differ
diff --git a/public/javascripts/img/zoom-minus-mini.png b/public/javascripts/img/zoom-minus-mini.png
deleted file mode 100644 (file)
index f9b63ab..0000000
Binary files a/public/javascripts/img/zoom-minus-mini.png and /dev/null differ
diff --git a/public/javascripts/img/zoom-plus-mini.png b/public/javascripts/img/zoom-plus-mini.png
deleted file mode 100644 (file)
index eecf2eb..0000000
Binary files a/public/javascripts/img/zoom-plus-mini.png and /dev/null differ
diff --git a/public/javascripts/img/zoom-world-mini.png b/public/javascripts/img/zoom-world-mini.png
deleted file mode 100644 (file)
index 2159dde..0000000
Binary files a/public/javascripts/img/zoom-world-mini.png and /dev/null differ
diff --git a/public/javascripts/img/zoombar.png b/public/javascripts/img/zoombar.png
deleted file mode 100644 (file)
index 959f01a..0000000
Binary files a/public/javascripts/img/zoombar.png and /dev/null differ
diff --git a/public/openlayers/img/blank.gif b/public/openlayers/img/blank.gif
new file mode 100644 (file)
index 0000000..4bcc753
Binary files /dev/null and b/public/openlayers/img/blank.gif differ
diff --git a/public/openlayers/img/close.gif b/public/openlayers/img/close.gif
new file mode 100644 (file)
index 0000000..a8958de
Binary files /dev/null and b/public/openlayers/img/close.gif differ
diff --git a/public/openlayers/img/marker-blue.png b/public/openlayers/img/marker-blue.png
new file mode 100644 (file)
index 0000000..83a90b4
Binary files /dev/null and b/public/openlayers/img/marker-blue.png differ
diff --git a/public/openlayers/img/marker-gold.png b/public/openlayers/img/marker-gold.png
new file mode 100644 (file)
index 0000000..2ff9ec5
Binary files /dev/null and b/public/openlayers/img/marker-gold.png differ
diff --git a/public/openlayers/img/marker-green.png b/public/openlayers/img/marker-green.png
new file mode 100644 (file)
index 0000000..17168f1
Binary files /dev/null and b/public/openlayers/img/marker-green.png differ
diff --git a/public/openlayers/theme/default/img/add_point_off.png b/public/openlayers/theme/default/img/add_point_off.png
new file mode 100644 (file)
index 0000000..aefd09c
Binary files /dev/null and b/public/openlayers/theme/default/img/add_point_off.png differ
diff --git a/public/openlayers/theme/default/img/add_point_on.png b/public/openlayers/theme/default/img/add_point_on.png
new file mode 100644 (file)
index 0000000..1294a2c
Binary files /dev/null and b/public/openlayers/theme/default/img/add_point_on.png differ
diff --git a/public/openlayers/theme/default/img/drag-rectangle-off.png b/public/openlayers/theme/default/img/drag-rectangle-off.png
new file mode 100644 (file)
index 0000000..fc6daf4
Binary files /dev/null and b/public/openlayers/theme/default/img/drag-rectangle-off.png differ
diff --git a/public/openlayers/theme/default/img/drag-rectangle-on.png b/public/openlayers/theme/default/img/drag-rectangle-on.png
new file mode 100644 (file)
index 0000000..7f783ce
Binary files /dev/null and b/public/openlayers/theme/default/img/drag-rectangle-on.png differ
diff --git a/public/openlayers/theme/default/img/draw_line_off.png b/public/openlayers/theme/default/img/draw_line_off.png
new file mode 100644 (file)
index 0000000..7f15612
Binary files /dev/null and b/public/openlayers/theme/default/img/draw_line_off.png differ
diff --git a/public/openlayers/theme/default/img/draw_line_on.png b/public/openlayers/theme/default/img/draw_line_on.png
new file mode 100644 (file)
index 0000000..ba09186
Binary files /dev/null and b/public/openlayers/theme/default/img/draw_line_on.png differ
diff --git a/public/openlayers/theme/default/img/draw_point_off.png b/public/openlayers/theme/default/img/draw_point_off.png
new file mode 100644 (file)
index 0000000..fde94bd
Binary files /dev/null and b/public/openlayers/theme/default/img/draw_point_off.png differ
diff --git a/public/openlayers/theme/default/img/draw_point_on.png b/public/openlayers/theme/default/img/draw_point_on.png
new file mode 100644 (file)
index 0000000..8804221
Binary files /dev/null and b/public/openlayers/theme/default/img/draw_point_on.png differ
diff --git a/public/openlayers/theme/default/img/draw_polygon_off.png b/public/openlayers/theme/default/img/draw_polygon_off.png
new file mode 100644 (file)
index 0000000..53ce9d7
Binary files /dev/null and b/public/openlayers/theme/default/img/draw_polygon_off.png differ
diff --git a/public/openlayers/theme/default/img/draw_polygon_on.png b/public/openlayers/theme/default/img/draw_polygon_on.png
new file mode 100644 (file)
index 0000000..2a33376
Binary files /dev/null and b/public/openlayers/theme/default/img/draw_polygon_on.png differ
diff --git a/public/openlayers/theme/default/img/move_feature_off.png b/public/openlayers/theme/default/img/move_feature_off.png
new file mode 100644 (file)
index 0000000..9f588db
Binary files /dev/null and b/public/openlayers/theme/default/img/move_feature_off.png differ
diff --git a/public/openlayers/theme/default/img/move_feature_on.png b/public/openlayers/theme/default/img/move_feature_on.png
new file mode 100644 (file)
index 0000000..072f066
Binary files /dev/null and b/public/openlayers/theme/default/img/move_feature_on.png differ
diff --git a/public/openlayers/theme/default/img/pan_off.png b/public/openlayers/theme/default/img/pan_off.png
new file mode 100644 (file)
index 0000000..30b2aed
Binary files /dev/null and b/public/openlayers/theme/default/img/pan_off.png differ
diff --git a/public/openlayers/theme/default/img/pan_on.png b/public/openlayers/theme/default/img/pan_on.png
new file mode 100644 (file)
index 0000000..d73e7dd
Binary files /dev/null and b/public/openlayers/theme/default/img/pan_on.png differ
diff --git a/public/openlayers/theme/default/img/remove_point_off.png b/public/openlayers/theme/default/img/remove_point_off.png
new file mode 100644 (file)
index 0000000..76c8606
Binary files /dev/null and b/public/openlayers/theme/default/img/remove_point_off.png differ
diff --git a/public/openlayers/theme/default/img/remove_point_on.png b/public/openlayers/theme/default/img/remove_point_on.png
new file mode 100644 (file)
index 0000000..0ff28fc
Binary files /dev/null and b/public/openlayers/theme/default/img/remove_point_on.png differ
diff --git a/public/openlayers/theme/default/style.css b/public/openlayers/theme/default/style.css
new file mode 100644 (file)
index 0000000..ba75a09
--- /dev/null
@@ -0,0 +1,150 @@
+div.olMapViewport {
+   -moz-user-select: none 
+}
+
+.olLayerGoogleCopyright {
+    left: 2px;
+    bottom: 2px;  
+}
+.olLayerGooglePoweredBy {
+    left: 2px;
+    bottom: 15px;   
+}
+
+.olControlScale {
+    right: 3px;
+    bottom: 3em;
+    display: block;
+    position: absolute;
+}
+.olControlPermalink {
+    right: 3px;
+    bottom: 1.5em;
+    display: block;
+    position: absolute;
+} 
+
+div.olControlMousePosition {
+    bottom: 0em;
+    right: 3px;
+    display: block;
+    position: absolute;
+    font-family: Arial;
+    font-size: smaller;
+}
+
+.olControlOverviewMapContainer {
+    position: absolute;
+    bottom: 0px;
+    right: 0px;
+}
+
+.olControlOverviewMapElement {
+    padding: 10px 18px 10px 10px;
+    background-color: #00008B;
+    -moz-border-radius: 1em 0 0 0;
+}
+
+.olControlOverviewMapMinimizeButton {
+    right: 0px;
+    bottom: 80px;
+}    
+
+.olControlOverviewMapMaximizeButton {
+    right: 0px;
+    bottom: 80px;
+}
+
+.olControlOverviewMapExtentRectangle {
+   cursor: move;
+    border: 2px dotted red;
+}
+.olLayerGeoRSSDescription {
+    float:left;
+    width:100%;
+    overflow:auto;
+    font-size:1.0em;
+}
+.olLayerGeoRSSClose {
+    float:right;
+    color:gray;
+    font-size:1.2em;
+    font-family:sans-serif;
+}
+.olLayerGeoRSSTitle {
+    float:left;font-size:1.2em;
+}
+
+.olPopupContent {
+    padding:5px;
+}    
+.olControlNavToolbar div { 
+  display:block;
+  width:  28px;
+  height: 28px;
+  top: 300px;
+  left: 6px;
+  position: relative;
+}
+
+.olControlNavToolbar .olControlNavigationItemActive { 
+  background-image: url("img/panning-hand-on.png");
+  background-repeat: no-repeat;
+}
+.olControlNavToolbar .olControlNavigationItemInactive { 
+  background-image: url("img/panning-hand-off.png");
+  background-repeat: no-repeat;
+}
+.olControlNavToolbar .olControlZoomBoxItemActive { 
+  background-image: url("img/drag-rectangle-on.png");
+  background-color: orange;
+  background-repeat: no-repeat;
+}
+.olControlNavToolbar .olControlZoomBoxItemInactive { 
+  background-image: url("img/drag-rectangle-off.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar  {
+    float:right;
+    right: 0px;
+    height: 30px; 
+    width: 200px;
+}
+.olControlEditingToolbar div { 
+  float:right;
+  width:  24px;
+  height: 24px;
+  margin: 5px;
+}
+.olControlEditingToolbar .olControlNavigationItemActive { 
+  background-image: url("img/pan_on.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlNavigationItemInactive { 
+  background-image: url("img/pan_off.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlDrawFeaturePointItemActive { 
+  background-image: url("img/draw_point_on.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlDrawFeaturePointItemInactive { 
+  background-image: url("img/draw_point_off.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlDrawFeaturePathItemInactive { 
+  background-image: url("img/draw_line_off.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlDrawFeaturePathItemActive { 
+  background-image: url("img/draw_line_on.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive { 
+  background-image: url("img/draw_polygon_off.png");
+  background-repeat: no-repeat;
+}
+.olControlEditingToolbar .olControlDrawFeaturePolygonItemActive { 
+  background-image: url("img/draw_polygon_on.png");
+  background-repeat: no-repeat;
+}