Your ZoomTo tip is good.
Could you please update the documentation you reference below. Note that 
you will need to login before you can edit. You can create a confluence 
wiki account by selecting the "Sign Up" tag.

hzhu wrote:
> 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
>>
>>
>>     
>
>   


-- 
Cameron Shorter
Systems Architect, http://lisasoft.com.au
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254


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