Thanks.
Well, i've managed to arrange it a way that is OK for me : i've set up the
max and minResolution tags in the MapPaneOL, it sets the limits of the OL
ZoomBar. And setting up the Bounding Box of the OWSContext to the extent i
want to start with, it's OK : i 've got my initial view, and i can zoom up
and down.
Nevertheless, there's still an issue : by setting the OWSContext Bounding
box, i'm fixing a limit to the areas the users can go to : i can't zoom on
an area out of this bounding box (even if, of course, at large scales, we
can see the parts of the map outside of the boudngin box). Is it clear ?
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 ?
Jean
2008/1/30, Cameron Shorter <[EMAIL PROTECTED]>:
>
> Interesting, that seems to be a new feature. In older versions of
> Mapbuilder we didn't cap the zoom level. I suspect that when
> MapPaneOL.js creates an Openlayers Map object, it sets the max zoom
> level. If you find this line, you could comment it out. Ideally there
> should be a config tag which turns maxZoomLevel on/off.
>
> Andreas may have further insight into this.
>
> Jean Pommier (IGE) wrote:
> > Hi,
> >
> > I've met another problem i can't solve : i'd like to set the initial
> > extent (bounding box) of my map. I d'ont have vector data outside of
> > this area.
> > Nevertheless, i'd like to let people the possibility to unzoom and see
> > the whole world.
> > The only way to set the initial extent i've found was to set the
> > bounding box property in the OWSContext/General area to my extent. But
> > it prevents me from going away from this bounding box. and actually,
> > that sounds logic.
> > So, what is the right way to set the initial extent of the view ?
> > Thanks,
> > 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
> >
>
>
> --
> Cameron Shorter
> Geospatial Systems Architect
> Tel: +61 (0)2 8570 5050
> Mob: +61 (0)419 142 254
>
> Think Globally, Fix Locally
> Commercial Support for Geospatial Open Source Solutions
> http://www.lisasoft.com/LISAsoft/SupportedProducts.html
>
>
>
--
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