[OpenLayers-Users] Javascript error with yahoo base layer

Vishwa rnvishwa at gmail.com
Wed Jun 4 02:21:25 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-users/attachments/20080604/530d2640/attachment.html


More information about the Users mailing list