Add missing CSS and image resources from OpenLayers 2.4 release and
reorganise things to keep OpenLayers stuff together.
|
@ -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);
|
||||
|
||||
|
|
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 845 B |
Before Width: | Height: | Size: 870 B |
Before Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
public/openlayers/img/blank.gif
Normal file
After Width: | Height: | Size: 42 B |
BIN
public/openlayers/img/close.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 249 B |
BIN
public/openlayers/img/marker-blue.png
Normal file
After Width: | Height: | Size: 992 B |
BIN
public/openlayers/img/marker-gold.png
Normal file
After Width: | Height: | Size: 831 B |
BIN
public/openlayers/img/marker-green.png
Normal file
After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 463 B |
BIN
public/openlayers/theme/default/img/add_point_off.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
public/openlayers/theme/default/img/add_point_on.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/openlayers/theme/default/img/drag-rectangle-off.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
public/openlayers/theme/default/img/drag-rectangle-on.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
public/openlayers/theme/default/img/draw_line_off.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/openlayers/theme/default/img/draw_line_on.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/openlayers/theme/default/img/draw_point_off.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
public/openlayers/theme/default/img/draw_point_on.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/openlayers/theme/default/img/draw_polygon_off.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/openlayers/theme/default/img/draw_polygon_on.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/openlayers/theme/default/img/move_feature_off.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/openlayers/theme/default/img/move_feature_on.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
public/openlayers/theme/default/img/pan_off.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/openlayers/theme/default/img/pan_on.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
BIN
public/openlayers/theme/default/img/remove_point_off.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
public/openlayers/theme/default/img/remove_point_on.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
150
public/openlayers/theme/default/style.css
Normal file
|
@ -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;
|
||||
}
|