[OpenLayers-Users] display style.

Murali Maddali murali.maddali at uai.com
Wed Apr 25 09:46:10 EDT 2007


Hello All,
 
I want to check and see if any one has seen this error before.
 
My map is turned off or on based on display style being to set to none or
block. On my initial page load I have the display set to none and but I am
trying to initialize the map and trying to zoom to a given extent. When ever
I try to zoom to a given extent I get the "element has no properties" error
in Events.js. On further debugging I narrowed the error down to getSize
method when it tries to calculateBounds for the current map. The current div
is not displayed and its clientWidth and clientHeight are not returned. 
 
This is where I run into error this is within setCenter method in Map.js
file.
 
            var bounds = this.getExtent(); //here the bounds are calculated
from the current map and the returned bounds are invalid.
   
            //send the move call to the baselayer and all the overlays    
            this.baseLayer.moveTo(bounds, zoomChanged, dragging);

Any suggestions are greatly appreciated.
 
Thank you all.
 
Regards,
Murali K. Maddali
UAI, Inc.
(256) 705-5191 (W)
murali.maddali at uai.com <mailto:murali.maddali at uai.com> 
 
"Always bear in mind that your own resolution to succeed is more important
than any one thing." - Abraham Lincoln

 
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070425/cccc0371/attachment.html


More information about the Users mailing list