Toan,
> Thank you. Where can I download the trunk version of Mapbuilder? I 
> haven't downloaded it yet before.

See http://communitymapbuilder.org/display/MAP/SVN+Repository

> I want to print a feature which user have chose. But before printing, 
> I must zoom to this feature (I get the bbox of this feature from 
> PostGIS), but when I zoom to the bbox of this feature, sometimes 
> Mapbuilder zoom to orther bbox, so a part of feature may be lot (out 
> of MapPaneOL). So I can't get bbox and scale of Mapbuilder. I must get 
> Map from Geoserver by URL request, so I don't know scale of Map I get.

I assume you are using the WfsGetFeature widget to retrieve your feature 
from GeoServer. Once you have thas in GmlRendererOL (id "gmlRenderer" in 
your config), you can use something like

var map = config.objects.mainMap.map;
var feature = map.getLayersByName("gmlRenderer")[0].features[0];
var bounds = feature.geometry.getBounds();
map.setCenter(bounds, map.getZoomForExtent(bounds));


Regards,
Andreas.

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

Reply via email to