[OpenLayers-Users] Mapserver and Openlayers - Pink Tiles
sendeman
martijnsendenspam at gmail.com
Thu Apr 16 07:48:30 EDT 2009
Thanks Arnd, Richard and all others who helped out!
Adding the layer was the final trick. I finally got both of the layers in my map-file to draw via OpenLayers. Great! I don't think I would have solved this without your help. Thanks a lot. I can go on developing again! :-)
Best regards,
Martijn Senden.
p.s. The current testfile
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="javascript/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, layer;
function init(){
map = new OpenLayers.Map('map', {
projection: "EPSG:28992",
maxResolution: 1328.125,
numZoomLevels: 14,
maxExtent : new OpenLayers.Bounds(-23500,289000,316500,629000),
units : "meters",
controls: [
new OpenLayers.Control.ZoomToMaxExtent(),
new OpenLayers.Control.PanZoomBar({zoomWorldIcon: true}),
new OpenLayers.Control.LayerSwitcher({'ascending':false}),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.KeyboardDefaults()
]
});
layer = new OpenLayers.Layer.MapServer( "Spoortunnel Delft",
"/geoviewerbin/mapserv.exe", {map: "c:/osgeo4w/apps/geoviewer/maps/spoortunnel.map", layers: "Topografie Tunnel"} );
map.addLayer(layer);
map.zoomToExtent(new OpenLayers.Bounds(83600,446000,84600,448200));
}
// -->
</script>
</head>
<body onload="init()">
<div id="map"></div>
</body>
</html>
--
View this message in context: http://n2.nabble.com/Mapserver-and-Openlayers---Pink-Tiles-tp2638175p2642499.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list