>    .... part of the code which centers the view on the feature...
>    map.setCenter(new
> OpenLayers.LonLat(feature.geometry.getBounds().getCenterLonLat()).transform(new
> OpenLayers.Projection("EPSG:4326"),map.getProjectionObject()), 18);

if you're working only in EPSG:4326, the transformation is not needed. Try 
these ones:

map.setCenter(myfeatures.getCenterLonLat(),10);
map.zoomToExtent(myfeatures);
map.zoomToScale(216672);
                                          
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to