Thanks again Arnd :)<br><br>Changed the different extents and now it is perfect :)<br><br> myBounds = new OpenLayers.Bounds(609462,196653,678224,258103);<br> map.zoomToExtent(new OpenLayers.Bounds(637311,222242,645906,229924));
<br><br>Thanks alot for your help ;)<br><br><div><span class="gmail_quote">On 11/19/07, <b class="gmail_sendername">Matthew Pulis</b> <<a href="mailto:mpulis@gmail.com">mpulis@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
So I change this line : myBounds = new OpenLayers.Bounds(641454,223922,643619,225842); to the extent of my whole boundary shape file (ie the whole extent) and then change this line : map.zoomToExtent(new OpenLayers.Bounds
(641454,223922,643619,225842)); to the extents of the view I want the user to have when he visits my default page right?<br><br>Thanks for your answer :) <div><span class="e" id="q_1165910740bbb425_1"><br><br><div><span class="gmail_quote">
On 11/19/07, <b class="gmail_sendername"> Arnd Wippermann</b> <<a href="mailto:arnd.wippermann@web.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">arnd.wippermann@web.de</a>> wrote:</span>
<blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi,<br><br>You have to change your maxextent. Only tiles within the maxextent are<br>requested.<br><br>-----Ursprüngliche Nachricht-----<br>Von: <a href="mailto:users-bounces@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@openlayers.org</a>] Im<br>Auftrag von Matthew Pulis
<br>Gesendet: Montag, 19. November 2007 00:01<br>An: <a href="mailto:users@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@openlayers.org </a><br>Betreff: Re: [OpenLayers-Users] Adding a Mapserv Layer
<br><br>Just would like to update this thread.<br><br>Thanks to Arnd Wipperman, have fixed alot of the bugs I had, the only bug<br>(/problem) left is that the map is being cropped out, thus, when you start <br>moving the map, when it goes out from the borders, there is just white blank
<br>canvas, instead of the map.<br><br>This is the code : <a href="http://pastebin.com/fce43cfb" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://pastebin.com/fce43cfb</a><br><br>(As one can see I already started to read through and use the source of
<br>Chris Schmidt found here : <a href="http://boston.freemap.in/routing.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://boston.freemap.in/routing.html</a><br>for the routing I am planning)
<br><br>Any help on this matter is extremely appreciated. You can see the bug acting <br>here : <a href="http://yancho.no-ip.org/~yancho/openl.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://yancho.no-ip.org/~yancho/openl.html
</a><br><br>Thanks and regards<br><br>Matthew<br>_______________________________________________<br>Users mailing list <br><a href="mailto:Users@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openlayers.org/mailman/listinfo/users</a><br><br></blockquote>
</div><br><br clear="all"><br></span></div> -- <div><span class="e" id="q_1165910740bbb425_3"><br>Matthew Pulis<br>URL : <a href="http://www.solutions-lab.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.solutions-lab.net</a><br>MSN : pulis_matthew[@]hotmail.com<br>ICQ : 145951110<br>Skype : <a href="http://solutions-lab.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">solutions-lab.net
</a></span></div></blockquote></div><br><br clear="all"><br>-- <br>Matthew Pulis<br>URL : <a href="http://www.solutions-lab.net">http://www.solutions-lab.net</a><br>MSN : pulis_matthew[@]hotmail.com<br>ICQ : 145951110<br>
Skype : <a href="http://solutions-lab.net">solutions-lab.net</a>