Add missing CSS and image resources from OpenLayers 2.4 release and
reorganise things to keep OpenLayers stuff together.
This commit is contained in:
parent
c11d961f62
commit
e9d3d4d19b
62 changed files with 153 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue