Hi everybody,<br><br>I've got a problem showing controls with OpenLayers when i put a doctype on my html page.<br>I'm integrating OpenLayers in a custom jsf component, that autogenerate the DOCTYPE.<br>It shows me the layers, but not the controls over the layers (PanZoomBar, Overview, etc...)
<br>It works fine when i remove the doctype in the generated code.<br>¿how can i solve this?<br><br>Thanks a lot in advance<br><br>My generated code is ...<br><br>------------------------------------------------------------------
<br><br><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>" >--><br><html > <br> <head>
<br> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <br></head><body onload="init();"><br> <style type="text/css"><br> #map {
<br> width: 800px;<br> height: 500px;<br> border: 1px solid black;<br> }<br> </style><script src="js/lib/OpenLayers.js" type="text/javascript"></script> <script type="text/javascript" >
<br> <!--<br> var map,layer;<br> <br> function init(){<br> <br> map = new OpenLayers.Map('map', { controls: [],tileSize: new OpenLayers.Size(500,500) });<br> layer = new
OpenLayers.Layer.MapServer( "OpenLayers WMS","<a href="http://192.168.212.20:84/cgi-bin/mapserv.exe?map=/ms4w/apps/prbmosaico/htdocs/prbmosaico.map">http://192.168.212.20:84/cgi-bin/mapserv.exe?map=/ms4w/apps/prbmosaico/htdocs/prbmosaico.map
</a>",{layers: 'PARCELASDE', TRANSPARENT: 'true'},{ maxExtent: new OpenLayers.Bounds(186555.49,4136068.22,211516.81,4156763.12), maxResolution: 104} ); <br> <br> map.addControl(new
OpenLayers.Control.PanZoomBar());<br> map.addControl(new OpenLayers.Control.MouseToolbar());<br> map.addControl(new OpenLayers.Control.OverviewMap());<br> <br> map.addLayer(layer);<br> if (!map.getCenter())
<br> map.zoomToMaxExtent();<br><br><br> } //--> <br> </script><br> <br><br> <div id="map"></div><br> </body><br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<br>