[OpenLayers-Dev] Javascript error with Yahoo layer on IE
Vishwa
rnvishwa at gmail.com
Thu Jun 5 03:23:20 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). This also occurs with the yahoo
base layer example on the openlayers website:
http://www.openlayers.org/dev/examples/yahoo.html
*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-dev/attachments/20080605/13e0adef/attachment.html
More information about the Dev
mailing list