Hi, thanks for the answer.. I didn&#39;t have the layers in png or gif.. I did that but&nbsp; the overlays is still not working.. Look how is the declaration now .. I kind of stuck:<br><br>Mapserver:<br><br><br>MAP<br>&nbsp; size 800&nbsp; 600<br>
&nbsp; imagetype &#39;png&#39;<br>&nbsp; TRANSPARENT ON<br>&nbsp; imagecolor 0 0 255<br>&nbsp; extent -180 -90 180 90<br>&nbsp; SYMBOLSET &quot;symbols&quot;<br>&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; &quot;init=epsg:4269&quot;<br>&nbsp; END<br><br>&nbsp; WEB<br>&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;/var/www/apache2-default/gis_tests/tmp/&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEURL &quot;/apache2-default/gis_tests/tmp/&quot;<br>&nbsp;&nbsp;&nbsp; TEMPLATE &quot;empty.html&quot;<br>&nbsp;&nbsp;&nbsp; LOG &quot;log&quot;<br>&nbsp;&nbsp;&nbsp; metadata<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wms_title &quot;us_states&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wms_srs &quot;EPSG:4269&quot;<br>
&nbsp;&nbsp;&nbsp; end<br>&nbsp; end<br><br>&nbsp; outputformat<br>&nbsp;&nbsp;&nbsp; name &quot;png&quot;<br>&nbsp;&nbsp;&nbsp; driver &quot;GD/PNG&quot;<br>&nbsp;&nbsp;&nbsp; imagemode &quot;rgba&quot;<br>&nbsp;&nbsp;&nbsp; extension &quot;png&quot;<br>&nbsp;&nbsp;&nbsp; mimetype &quot;image/png&quot;<br>&nbsp;&nbsp;&nbsp; imagemode RGBA<br>
&nbsp; end<br>---------<br><br>Openlayers:<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = new OpenLayers.Layer.MapServer( &quot;Estados unidos&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<a href="http://192.168.1.100/cgi-bin/mapserv?map=us_states.map">http://192.168.1.100/cgi-bin/mapserv?map=us_states.map</a>&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layers: &#39;us_states&#39;, &#39;format&#39;:&#39;image/png&#39;});<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; roads = new OpenLayers.Layer.MapServer( &quot;Roads&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<a href="http://192.168.1.100/cgi-bin/mapserv?map=us_states.map">http://192.168.1.100/cgi-bin/mapserv?map=us_states.map</a>&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layers: &#39;us_roads&#39;,transparent: &#39;true&#39;,&nbsp; &#39;format&#39;:&#39;image/png&#39;}, {isBaseLayer:false});<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gps = new OpenLayers.Layer.MapServer( &quot;GPS&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<a href="http://192.168.1.100/cgi-bin/mapserv?map=us_states.map">http://192.168.1.100/cgi-bin/mapserv?map=us_states.map</a>&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layers: &#39;gps_points&#39;, transparent: &#39;true&#39;, &#39;format&#39;:&#39;image/png&#39; }, {isBaseLayer:false});<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; roads.setVisibility(false);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gps.setVisibility(false);<br>
<br><br><br>Thaks for your help :)<br>&nbsp; <br><br><div class="gmail_quote">On Thu, Jan 29, 2009 at 5:10 PM, Ivan Grcic <span dir="ltr">&lt;<a href="mailto:igrcic@gmail.com">igrcic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hmm what are the layers image type? its has to be PNG/GIF to be transparent...<br>
<br>
i guess u have to add format: &#39;image/png&#39;, to layer options<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Jan 28, 2009 at 9:13 PM, Rafael chacón &lt;<a href="mailto:rafaelchacon@gmail.com">rafaelchacon@gmail.com</a>&gt; wrote:<br>
&gt; Hi, the layers are showing as overlays &nbsp;(with baselayer set to false) I&#39;m<br>
&gt; adding some snapshot to show the behavior.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jan 29, 2009 at 3:31 PM, Ivan Grcic &lt;<a href="mailto:igrcic@gmail.com">igrcic@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi, check options:<br>
&gt;&gt;<br>
&gt;&gt; layer.isBaseLayer(true/false)<br>
&gt;&gt;<br>
&gt;&gt; map.setBaseLayer(layer)<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jan 28, 2009 at 8:51 PM, Rafael chacón &lt;<a href="mailto:rafaelchacon@gmail.com">rafaelchacon@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi, I have the following layers defined:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &nbsp; &nbsp;roads = new OpenLayers.Layer.MapServer( &quot;Roads&quot;,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;<a href="http://192.168.1.103/cgi-bin/mapserv?map=us_states.map" target="_blank">http://192.168.1.103/cgi-bin/mapserv?map=us_states.map</a>&quot;,<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {layers: &#39;us_roads&#39;, transparent:&#39;true&#39;});<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gps = new OpenLayers.Layer.MapServer( &quot;GPS&quot;,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;<a href="http://192.168.1.103/cgi-bin/mapserv?map=us_states.map" target="_blank">http://192.168.1.103/cgi-bin/mapserv?map=us_states.map</a>&quot;,<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {layers: &#39;gps_points&#39;, transparent: &#39;true&#39;});<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &nbsp;roads.setVisibility(false)<br>
&gt;&gt; &gt; &nbsp;gps.setVisisibility(false)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Both layers work, but I have the following behavior: when one of the<br>
&gt;&gt; &gt; layers<br>
&gt;&gt; &gt; is active the other one disappears. &nbsp; Suppose I chose first the roads,<br>
&gt;&gt; &gt; then<br>
&gt;&gt; &gt; it show the roads. Then I select gps, then it shows the gps points but<br>
&gt;&gt; &gt; roads<br>
&gt;&gt; &gt; start to disappear. Any ideas why this happens??<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks in advance.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Rafael Chacon,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;El hombre es la medida de todas las cosas&quot;. Protagoras<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Users mailing list<br>
&gt;&gt; &gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt;&gt; &gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Ivan Grcic<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Rafael Chacon,<br>
&gt;<br>
&gt; &quot;El hombre es la medida de todas las cosas&quot;. Protagoras<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">Ivan Grcic<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rafael Chacon,<br><br>&quot;El hombre es la medida de todas las cosas&quot;. Protagoras<br>