Hey guys, <br><br>I managed to handle the "zoom changed" event now. What I m trying to do is to combine prerendered tiles with tiles gettin rendered "on the fly". So I only want to rerender the tiles with a zoom greater than let s say 14. I did<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br></blockquote><span style="font-family: courier new,monospace;">layerEntry0.events.on({</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> moveend: function(e) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if (e.zoomChanged) {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> var zoom = parseInt(map.zoom);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if(zoom >= 14){</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> map.setBaseLayer(map.layers[1]); </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }); </span><br><br>The issue that I got with this solution is, that the event gets fired AFTER the zoom changed (which makes sense, D'ooh) ... so whenever I switch the layer, it first displays the current base layer with e.g. zoom 14, than switches the layers and displays the tiles with zoom 14 again, using a different base layer. Now is there a way to change the base layer BEFORE new tiles are requested?<br>
<br>Thanks in advance!<br><br>Dom<br>