Hi,
That's right, olivier, you're true, it works perfectly well. Great.
So at the end, Andreas and you have given me 2 different ways to do it,
slightly différent in the results.
Great, thanks a lot for the support !
Maybe the maxExtent use should be illustrated in one of the examples, why
not the OpenLayers one ?
Jean
2008/1/31, olivier.terral <[EMAIL PROTECTED]>:
>
> Hi,
>
> It's not an issue, it's already implemented in MapPaneOL.
>
> Just add <maxExtent>-180 -90 180 90</maxExtent> in MapPaneOL node in
> config file.
> I've tested with the demo examples/openlayers/ and it works
>
> Bye
>
>
> Andreas Hocevar a écrit :
> > Jean,
> >
> > Jean Pommier (IGE) wrote:
> >
> >> 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 ?
> >>
> >
> > It is much simpler than you might imagine. Just add a bbox parameter to
> > your url:
> > http://yourhost/mapbuilder/yourapp/index.html?bbox=0,0,50,50
> >
> > If you do not want to use url parameters for that, you can do something
> > similar e.g. in a script block in the head of your html page:
> >
> > function initBBox() {
> > config.objects.mainMap.setBoundingBox([0,0,50,50]);
> > }
> > config.objects.mainMap.addListener("loadModel", initBBox);
> >
> >
> > Regards,
> > Andreas.
> >
> >
> -------------------------------------------------------------------------
> > 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
> >
> >
>
>
--
Information Géographique et Environnement
39 chemin Canto Laouzeto
31100 Toulouse
France
Port +33 6 09 23 21 36
Fax +33 5 61 86 09 23
Mail : [EMAIL PROTECTED]
Site web : www.ige.fr
Suivez de près l'actualité d'IGE grâce à notre fil RSS :
http://www.ige.fr/actualites/rss.php
-------------------------------------------------------------------------
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