[OpenLayers-Users] Issues with Yahoo layer

Vishwa rnvishwa at gmail.com
Tue Jun 3 07:57:50 EDT 2008


Hi,

While using the openlayers map with yahoo base layer, if you pan (move
around) across the map after a while you get a JavaScript error. This
happens only in Internet Explorer (6 and 7).

*The error reads*: "Invalid Argument"
*Line number*: 579 in OpenLayers.js

*After enabling script debugging, the browser pointed at this line:*
this.dragging=!!dragging;},centerLayerContainer:function(lonlat){var
originPx=this.getViewPortPxFromLonLat(this.layerContainerOrigin);var
newPx=this.getViewPortPxFromLonLat(lonlat);if((originPx!=null)&&(newPx!=null)){this.layerContainerDiv.style.left=Math.round(originPx.x-newPx.x)+"px";this.layerContainerDiv.style.top=Math.round(originPx.y-newPx.y)+"px";}},isValidZoomLevel:function(zoomLevel){return((zoomLevel!=null)&&(zoomLevel>=0)&&(zoomLevel

Anyone knows why this is happening and how to get around the problem?

Regards,
Vishwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080603/f53fc129/attachment.html


More information about the Users mailing list