As reported on the user list, JMapPane clears the display prior to rendering. For complex layers and/or slow data connections this means that the display remains blank for a long time after resizing, panning etc.
The fix for this involves:
move the drawing code out of the present JMapPane.paintComponent method into a separate method,
leaving only the image blitting in paintComponent.
Replace the timer-based handling of repainting after resizing with use of a ScheduledExecutorService. Also use this for repainting after panning.
Replace confusing usage of boolean fields with method args.
CodeHaus Comment From: mbedward - Time: Thu, 5 May 2011 00:02:54 -0500
Tested the changes against the example programs. Still far from perfect but much better than before.
Committed to trunk (r37084) and 2.7.x branch (r37085)