OK, thanks Andreas.
You are right. This is because we set a limited maxExtent. This concept
> is in MapBuilder since the initial version of MapPaneOL. And although
> nobody has yet complained about it, I still consider it an issue.
I'm quite surprised to be the first to find this problematic...
Never mind, it's not very important right now.
> I suppose the clean way in my case would be not to set the OWSContext
> > Bounding Box to such a limited area, but, let's say to (-180, -90
> > 180,90), and to set the MapPaneOL's center and initial Zoom, but i
> > find no tag for that, in MapPaneOL. So what's up ? Is it not possible
> > at the moment ? Is it elsewhere ?
>
> The correct way to do it would be to use Proj4js to get (-180,-90 180
> 90) projected to the map SRS and set that as maxExtent of the map. After
> loading the layers, map.zoomToExtent would have to be used to set the
> map to the extent specified as BoundingBox in the context.
>
> However, this behaviour should be configurable, in order to not break
> WMS-T layers that do not provide tiles for the whole planet.
I don't need any conversion, in my case, since i'm working with EPSG 4326.
What i still don't understand, is how to apply map.zoomToExtent ? Can i do
it without writing javascript code. Is there a tag, a widget that does it ?
Or shall i write a piece of javascript code ? And if yes, where ? Any idea ?
Any pist ? Just to start with ?
I'm just beginning with MapBuilder (i was planning to use directly OL,
before i realised mapbuilder's possibilities and got seducted), and i'm
still not very at ease with Mapbuilder's structure and mind.
Thanks a lot,
Jean
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users