Posted by & filed under OpenLayers, Web Development.

Just a quick heads up for those of you using OpenLayers. There seem to have been a lot of problems lately with OpenLayers refusing to redraw its layers when panning, where everything was working before. One possible solution turned up in this thread on OpenLayers Users. The credit for solving the problem is therefore not mine, but I found it so useful that I had to share.

Short version: check that you’re not using OpenLayers.Control.MouseDefaults – it has been deprecated. Instead, use OpenLayers.Control.Navigation – everything else stays the same.

Quick fix for a silly problem that kept me occupied for far too long.

pixelstats trackingpixel

Leave a Reply

You must be logged in to post a comment.