[OpenLayers-Users] getDataExtent() for GML layer?

Christopher Schmidt crschmidt at metacarta.com
Thu Oct 16 21:31:42 EDT 2008


On Fri, Oct 17, 2008 at 11:44:09AM +1300, Robert Sanson wrote:
> I couldn't get getDataExtent()) to work for a OpenLayers.Layer.GML

I expect you were creating the layer, then imediately calling
getDataExtent, before the data had loaded. Instead, you coul have
registerd for the 'loadend' event on the layer, and then called
getDataExtent after that was triggered.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list