Hi, Andreas,

I tried <displayOutsideMaxExtent>true</displayOutsideMaxExtent>, and found
true or false doesn't make any difference for my case.  If I want to zoom to
place in the state of Massachusetts, I'd have to set the ViewContest
<BoundingBox SRS="EPSG:26986" minx="..." miny="..." maxx="..." maxy=".."/>
to the whole state.  

Another tip I want contribute to the whole group is ZoomTo() function.

I got the instruction on how to ZoomTo() using for Mapbuilder 1.0.1.
http://docs.codehaus.org/display/MAP/Step+5+Link+Search+Results+with+the+Map

The actually code is "config.objects.mainMap.extent.zoomToBox(ul, br);"  
I figure out its counterpart for Mapbuilder 1.5 alpha 2 is
"config.objects.mainMap.map.zoomToExtent(new OpenLayers.Bounds(ul[0], lr[1],
lr[0], ul[1]))"

Regards.

HuaiNing


Andreas Hocevar-2 wrote:
> 
> Hi Huaining,
> 
> On 9/18/07, hzhu <[EMAIL PROTECTED]> wrote:
>> I've figured out what's wrong with my zoom to function. The full extent
>> of
>> my project is the whole state of Massachusetts, but in the map configure
>> file I defined the bounding box to Boston instead of the whole state for
>> the
>> ViewContest <BoundingBox SRS="EPSG:26986" minx="..." miny="..."
>> maxx="..."
>> maxy=".."/>
>>
>> This is OK for Mapbuilder 1.0.1, I can easier zoom to other towns using
>> "?bbox=..." query string, but for Mapbuilder 1.5 alpha 2, you have to
>> define
>> the ViewContest to the full extent.
> 
> You can specify
> 
>     <displayOutsideMaxExtent>true</displayOutsideMaxExtent>
> 
> as property of your MapPaneOL to regain the behavior from Mapbuilder
> 1.0.1.
> 
>>  I bet that's one of the difference of
>> open layer map.  In my humble opinion, we should specified this point in
>> "User's Guide" document when we finally release this version.
> 
> Done, see [1]. Feel free to contribute to this page if you stumble
> across changes in the future. Thanks.
> 
> Regards,
> Andreas.
> 
> [1] http://docs.codehaus.org/display/MAP/Upgrading+from+pre-1.5
> 
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bbox-from-querystring-window.cgiArgs-%22bbox%22--tf4442933.html#a12867300
Sent from the MapBuilder Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to