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

Robert Sanson SansonR at asurequality.com
Thu Oct 16 21:33:53 EDT 2008


Hi Chris
 
I was doing exactly that. IE complained about a null object. Firefox 3 just hung.
 
Thanks for the explanation.
 
regards,
 
Robert

>>> Christopher Schmidt <crschmidt at metacarta.com> 17/10/2008 2:31 p.m. >>>
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

------------------------------------------------------------------
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.
------------------------------------------------------------------


This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081017/7142ee3b/attachment.html


More information about the Users mailing list