Hi, Andreas,

Thank you very much for all your help.  

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

Many thanks again.

Huaining



Andreas Hocevar-2 wrote:
> 
> Hi,
> 
> On 9/14/07, hzhu <[EMAIL PROTECTED]> wrote:
>> I do specify for ViewContext <BoundingBox SRS="EPSG:26986" minx="..."
>> miny="..." maxx="..." maxy=".."/>
> 
> Then maybe there is something wrong with your projection file? Can you
> post your EPSG26986.js, your context and your config xml files?
> 
> http://demo.communitymapbuilder.org/demo/mapbuilder/demo/basic/index.html?bbox=-180,-90,90,180
>> doesn't get exactly as
>> http://demo.communitymapbuilder.org/demo/mapbuilder/demo/basic/index.html.
> 
> And what about [1]? Because this is the original extent of the map
> (lower left lon, lower left lat, upper right lon, upper right lat)
> 
>> And when you mouse over the map of
> http://demo.communitymapbuilder.org/demo/mapbuilder/demo/basic/index.html?bbox=0,0,50,50
>> (0,0) and (50, 50) doesn't seems to be the bounding box of the map.
>>
>> I know openlayer map image expand 1/2 to both North, West, South, East
>> for
>> the purpose of tiling/catching.  But this doesn't seems like the reason.
> 
> It is the reason. 0,0,50,50 is a portrait oriented rectangle, while
> the map is landscape oriented. And Mapbuilder zooms exactly to the
> next valid resolution, which will be larger to the north and south
> than the bbox. The behaviour of Mapbuilder is correct.
> 
> If you really need to zoom to an arbitrary extent, you can build a
> custom widget that uses an OpenLayers hack as described in [2].
> 
> Regards,
> Andreas.
> 
> [1]
> http://demo.communitymapbuilder.org/demo/mapbuilder/demo/basic/index.html?bbox=-180,-90,180,90
> [2]
> http://www.nabble.com/Allowing-zoom-to-arbitrary-extents-in-OL-t4406990.html
> 
> -------------------------------------------------------------------------
> 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#a12763580
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