I solved this myself. In case it is of interest to others, here is what
I needed:
deeds.events.on({
'loadend': function(evt) {
console.log("loadend of deeds layer");
var deeds_extent = deeds.getDataExtent();
map.zoomToExtent(deeds_extent);
// popup.close();
}
});
On 12/02/2011 08:50 AM, Jim White wrote:
Hi,
I have a map that I want the initial view to be of a smaller wfs
layer, but allow the user to view a larger wms layer. If I set the map
maxExtent to the larger area I can view the all the wms map. If I set
the maxExtent to the smaller area the initial view is correct, but
then you cannot view all parts of the larger background map.
I tried to add
map.zoomToExtent(new
OpenLayers.Bounds(-8511523.3718339,4395058.7021558,-8472425.8318731,4416613.9441284));
However the map always zooms to maxExtent. How to do this?
Thanks,
Jim White
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users