[OpenLayers-Users] Adding a Mapserv Layer

Matthew Pulis mpulis at gmail.com
Mon Nov 19 14:59:12 EST 2007


Thanks again Arnd :)

Changed the different extents and now it is perfect :)

myBounds = new OpenLayers.Bounds(609462,196653,678224,258103);
map.zoomToExtent(new OpenLayers.Bounds(637311,222242,645906,229924));

Thanks alot for your help ;)

On 11/19/07, Matthew Pulis <mpulis at gmail.com> wrote:
>
> 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?
>
> Thanks for your answer :)
>
> On 11/19/07, Arnd Wippermann <arnd.wippermann at web.de> wrote:
> >
> > Hi,
> >
> > You have to change your maxextent. Only tiles within the maxextent are
> > requested.
> >
> > -----Ursprüngliche Nachricht-----
> > Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
> > Im
> > Auftrag von Matthew Pulis
> > Gesendet: Montag, 19. November 2007 00:01
> > An: users at openlayers.org
> > Betreff: Re: [OpenLayers-Users] Adding a Mapserv Layer
> >
> > Just would like to update this thread.
> >
> > Thanks to Arnd Wipperman, have fixed alot of the bugs I had, the only
> > bug
> > (/problem) left is that the map is being cropped out, thus, when you
> > start
> > moving the map, when it goes out from the borders, there is just white
> > blank
> > canvas, instead of the map.
> >
> > This is the code : http://pastebin.com/fce43cfb
> >
> > (As one can see I already started to read through and use the source of
> > Chris Schmidt found here : http://boston.freemap.in/routing.html
> > for the routing I am planning)
> >
> > Any help on this matter is extremely appreciated. You can see the bug
> > acting
> > here : http://yancho.no-ip.org/~yancho/openl.html
> >
> > Thanks and regards
> >
> > Matthew
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
>
> --
> Matthew Pulis
> URL : http://www.solutions-lab.net
> MSN : pulis_matthew[@]hotmail.com
> ICQ : 145951110
> Skype : solutions-lab.net
>



-- 
Matthew Pulis
URL : http://www.solutions-lab.net
MSN : pulis_matthew[@]hotmail.com
ICQ : 145951110
Skype : solutions-lab.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071119/73b183a1/attachment.html


More information about the Users mailing list