Hi,
I assume you are using an old-style locator map with separate context,
which is essential for your use case. Just to ensure that, compare
your config with the one for
http://demo.communitymapbuilder.org/demo/mapbuilder/demo/complete/
(http://demo.communitymapbuilder.org/demo/mapbuilder/demo/complete/completeConfig.xml).
The locator map is based on a separate context doc, and the map is
referenced as "locator".
So what you would have to do, as you already assumed, is to use
setBoundingBox, eg.:
config.objects.locator.setBoundingBox([0,0,90,90])
You should do this in a function that is triggered by the loadModel
event of the locator map context. Be sure to assign the listener in
your custom onload function, so the listener gets registered after the
listener that is triggered by the ?bbox= parameter.:
<script...>
function myLoadFunc() {
config.objects.locator.addListener(...);
}
</script>
<body onload="mbDoLoad(myLoadFunc)">
Regards,
Andreas.
On 9/28/07, Marcos Sánchez Provencio <[EMAIL PROTECTED]> wrote:
> Hello there
>
> Let me describe my application:
>
> The first screen the user sees is a map of the whole country. Then she
> selects the portion of the country she is interested in, and an array of
> signals/days she wishes to see. This map has a small locator map by the
> side.
>
> Then another window pops up, with the maps selected (~20), along with a
> locator map.
>
> The problem is that I want the result maps with the area selected in the
> first screen, but the locator map zoomed out. But then, I have to use
> the CGI parameter BBOX to set the initial zoom. ¿How can I set a
> different zoom level for the locator map and the result maps? ¿Is there
> some parameter in the config.xml that I can tweak? ¿can i use
> setBoundingBox? ¿when?
>
>
> I hope I have explained myself :-) Thank you
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users