Hi everybody,<br>i solve the problem, it seems to be a wrong path in the images directory.<br>Thanks a lot .<br><br>Rubén P.<br><br><div><span class="gmail_quote">2007/6/28, Christian López Espínola <<a href="mailto:penyaskito@gmail.com">
penyaskito@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I can't reproduce the bug with a example.<br>What browser are you using? Do the problem occurs in other browsers?
<br>I can add that in my application i'm using XHTML Strict, but I think<br>that using HTML 4 mustn't be a problem.<br><br>Cheers from the hot Seville :)<br><br><br>On 6/28/07, Ruben Pardo <<a href="mailto:correosig@gmail.com">
correosig@gmail.com</a>> wrote:<br>> Hi,<br>><br>> I'm checking my html source generated but it doesn't work. I'm using<br>> OpenLayers 2.4 API, and still have the same problem. When i remove the tag
<br>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<br>> <a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>" > it works fine.<br>>
<br>> My code :...........<br>><br>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<br>> <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"<br>> http-equiv="Content-Type"><br>> </head><br>> <body onload="init();" >
<br>><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"
<br>> type="text/javascript"></script> <script<br>> type="text/javascript" ><br>> <!--<br>> var map,layer;<br>><br>> function init(){<br>>
<br>> map = new OpenLayers.Map('map', { controls: [],tileSize: new<br>> OpenLayers.Size(500,500) });<br>> layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS","<br>
> <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:<br>
> 'PARCELASDE', TRANSPARENT: 'true'},{ maxExtent: new<br>> OpenLayers.Bounds(186555.49,4136068.22,211516.81,4156763.12), maxResolution:<br>> 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>> <div style="margin:0px" id="map"></div><br>> </body>
<br>><br>><br>><br>><br>><br>> 2007/6/28, Christian López Espínola < <a href="mailto:penyaskito@gmail.com">penyaskito@gmail.com</a>>:<br>> > Hola Ruben,<br>> ><br>> > The doctype mustn't be a problem with OpenLayers. I'm using
<a href="http://ASP.NET">ASP.NET</a><br>> > with OpenLayers and I hadn't any problem.<br>> > Please check the HTML source generated by your application and if you<br>> > can't find the solution, post a piece.
<br>> ><br>> > Hope this helps<br>> ><br>> > On 6/28/07, Ruben Pardo <<a href="mailto:correosig@gmail.com">correosig@gmail.com</a>> wrote:<br>> > > Hi everybody,<br>> > ><br>
> > > I've got a problem showing controls with OpenLayers when i put a<br>> doctype on<br>> > > my html page.<br>> > > I'm integrating OpenLayers in a custom jsf component, that autogenerate
<br>> the<br>> > > DOCTYPE.<br>> > > It shows me the layers, but not the controls over the layers<br>> (PanZoomBar,<br>> > > 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>> > ><br>> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br>> > > "<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"<br>> > > 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"<br>> > > type="text/javascript"></script> <script
<br>> > > type="text/javascript" ><br>> > > <!--<br>> > > var map,layer;<br>> > ><br>> > > function init(){<br>> > ><br>> > > map = new
OpenLayers.Map('map', { controls: [],tileSize: new<br>> > > OpenLayers.Size(500,500) });<br>> > > layer = new OpenLayers.Layer.MapServer( "OpenLayers<br>> > > WMS","
<br>> <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><br>> > > ",{layers: 'PARCELASDE', TRANSPARENT: 'true'},{ maxExtent: new
<br>> > > OpenLayers.Bounds(186555.49,4136068.22,211516.81,4156763.12),<br>> maxResolution:<br>> > > 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>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<br>> > ><br>> > > _______________________________________________<br>> > > Users mailing list<br>> > > <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> > >
<a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>> > ><br>> > ><br>> ><br>> ><br>> > --<br>> > Regards,<br>> ><br>> > Christian López Espínola
<br>> ><br>><br>><br><br><br>--<br>Regards,<br><br>Christian López Espínola<br></blockquote></div><br>