The issue was with a conditional statement in my code which I had somehow messed up. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110601/0e707282/attachment-0001.html