That&#39;s still not doing it but I&#39;m noticing that the layers turns on when I pan to the edge of the map. What controls that?<br><br><div class="gmail_quote">On Thu, Jan 26, 2012 at 11:28 AM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You still forgot to set the maxExtent on your WMS layer!<br>
<br>
Andreas.<br>
<br>
On Thu, Jan 26, 2012 at 8:11 PM, Kjel Anderson<br>
<div class="HOEnZb"><div class="h5">&lt;<a href="mailto:kanderson@truevectortech.com">kanderson@truevectortech.com</a>&gt; wrote:<br>
&gt; Hmmm. No dice with these changes incorporated. I&#39;m not sure what is going<br>
&gt; on. For the curious there is a live link here:<br>
&gt;<br>
&gt; <a href="http://truevector.skygone.net:8080/DWTEdstest/" target="_blank">http://truevector.skygone.net:8080/DWTEdstest/</a><br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jan 26, 2012 at 10:50 AM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; you put most layer options in the layer params object, and you should<br>
&gt;&gt; set the maxExtent on the WMS layer. Something like<br>
&gt;&gt;<br>
&gt;&gt;            tiled = new OpenLayers.Layer.WMS(<br>
&gt;&gt;                &quot;dwt_lata_proj - Untiled&quot;,<br>
&gt;&gt; &quot;<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>&quot;,<br>
&gt;&gt;                {<br>
&gt;&gt;                    layers: &#39;DWT:dwt_lata_proj&#39;,<br>
&gt;&gt;                    styles: &#39;&#39;,<br>
&gt;&gt;                    format: format,<br>
&gt;&gt;                    transparent:true,<br>
&gt;&gt;                }, {<br>
&gt;&gt;                    numZoomLevels:19,<br>
&gt;&gt;                    maxExtent: new OpenLayers.Bounds(<br>
&gt;&gt;                        -19840232, <a href="tel:2028971.375" value="+12028971375">2028971.375</a>,<br>
&gt;&gt;                        -7262943, 11534410<br>
&gt;&gt;                    ),<br>
&gt;&gt;                    minResolution:0.5971642833948135,<br>
&gt;&gt;                    maxResolution:156543.03390625,<br>
&gt;&gt;                    singleTile: true,<br>
&gt;&gt;                    ratio: 1<br>
&gt;&gt;                }<br>
&gt;&gt;            );<br>
&gt;&gt;<br>
&gt;&gt; The above should work both with singleTile: true and without.<br>
&gt;&gt;<br>
&gt;&gt; Andreas.<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jan 26, 2012 at 7:44 PM, Kjel Anderson<br>
&gt;&gt; &lt;<a href="mailto:kanderson@truevectortech.com">kanderson@truevectortech.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Looking at it now I see the version that is working &quot;best&quot; is with the<br>
&gt;&gt; &gt; wms<br>
&gt;&gt; &gt; layer being untiled.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   function init(){<br>
&gt;&gt; &gt;                 // if this is just a coverage or a group of them,<br>
&gt;&gt; &gt; disable a<br>
&gt;&gt; &gt; few items,<br>
&gt;&gt; &gt;                 // and default to jpeg format<br>
&gt;&gt; &gt;                 format = &#39;image/png&#39;;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                 var bounds = new OpenLayers.Bounds(<br>
&gt;&gt; &gt;                     -19840232, <a href="tel:2028971.375" value="+12028971375">2028971.375</a>,<br>
&gt;&gt; &gt;                     -7262943, 11534410<br>
&gt;&gt; &gt;                 );<br>
&gt;&gt; &gt;                 var options = {<br>
&gt;&gt; &gt;                     controls: [],<br>
&gt;&gt; &gt;                     maxResolution: 49130.03515625,<br>
&gt;&gt; &gt;                     projection: &quot;EPSG:900913&quot;,<br>
&gt;&gt; &gt;                     units: &#39;m&#39;<br>
&gt;&gt; &gt;                 };<br>
&gt;&gt; &gt;                 map = new OpenLayers.Map(&#39;map&#39;, options);<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;             var road = new OpenLayers.Layer.Bing({<br>
&gt;&gt; &gt;                 name: &quot;Road&quot;,<br>
&gt;&gt; &gt;                 key: apiKey,<br>
&gt;&gt; &gt;                 type: &quot;Road&quot;<br>
&gt;&gt; &gt;             });<br>
&gt;&gt; &gt;             var hybrid = new OpenLayers.Layer.Bing({<br>
&gt;&gt; &gt;                 name: &quot;Hybrid&quot;,<br>
&gt;&gt; &gt;                 key: apiKey,<br>
&gt;&gt; &gt;                 type: &quot;AerialWithLabels&quot;<br>
&gt;&gt; &gt;             });<br>
&gt;&gt; &gt;             var aerial = new OpenLayers.Layer.Bing({<br>
&gt;&gt; &gt;                 name: &quot;Aerial&quot;,<br>
&gt;&gt; &gt;                 key: apiKey,<br>
&gt;&gt; &gt;                 type: &quot;Aerial&quot;<br>
&gt;&gt; &gt;             });<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;             map.addLayers([road, hybrid, aerial]);<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;             tiled = new OpenLayers.Layer.WMS(<br>
&gt;&gt; &gt;                 &quot;dwt_lata_proj - Untiled&quot;,<br>
&gt;&gt; &gt; &quot;<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>&quot;,<br>
&gt;&gt; &gt;                 {<br>
&gt;&gt; &gt;                     width: &#39;512&#39;,<br>
&gt;&gt; &gt;                     srs: &#39;EPSG:900913&#39;,<br>
&gt;&gt; &gt;                     layers: &#39;DWT:dwt_lata_proj&#39;,<br>
&gt;&gt; &gt;                     height: &#39;386&#39;,<br>
&gt;&gt; &gt;                     styles: &#39;&#39;,<br>
&gt;&gt; &gt;                     format: format,<br>
&gt;&gt; &gt;                     transparent:true,<br>
&gt;&gt; &gt;                     numZoomLevels:19,<br>
&gt;&gt; &gt;                     minResolution:0.5971642833948135,<br>
&gt;&gt; &gt;                     maxResolution:156543.03390625<br>
&gt;&gt; &gt;                 },<br>
&gt;&gt; &gt;                 {singleTile: true, ratio: 1}<br>
&gt;&gt; &gt;             );<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;             map.addLayer(untiled);<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;             // build up all controls<br>
&gt;&gt; &gt;             map.addControl(new OpenLayers.Control.PanZoomBar({<br>
&gt;&gt; &gt;                 position: new OpenLayers.Pixel(2, 15)<br>
&gt;&gt; &gt;             }));<br>
&gt;&gt; &gt;             map.addControl(new OpenLayers.Control.Navigation());<br>
&gt;&gt; &gt;             map.addControl(new OpenLayers.Control.Scale($(&#39;scale&#39;)));<br>
&gt;&gt; &gt;             map.addControl(new<br>
&gt;&gt; &gt; OpenLayers.Control.MousePosition({element:<br>
&gt;&gt; &gt; $(&#39;location&#39;)}));<br>
&gt;&gt; &gt;             map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Thu, Jan 26, 2012 at 10:33 AM, maw269 &lt;<a href="mailto:maw269@gmail.com">maw269@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Is your bing layer imagery? I&#39;ve had nothing but issues combining<br>
&gt;&gt; &gt;&gt; layers<br>
&gt;&gt; &gt;&gt; with<br>
&gt;&gt; &gt;&gt; Bing Imagery layers.<br>
&gt;&gt; &gt;&gt; Anyhow, can you post the relevant code so we could take a look?<br>
&gt;&gt; &gt;&gt; --Matt<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; View this message in context:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a href="http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/overlaying-tiled-WMS-on-top-of-bing-tp4341145p4341275.html</a><br>

&gt;&gt; &gt;&gt; Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Users mailing list<br>
&gt;&gt; &gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt;&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Andreas Hocevar<br>
&gt;&gt; OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
&gt;&gt; Expert service straight from the developers.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
</div></div></blockquote></div><br>