|
From: James N. <jln...@gm...> - 2009-10-11 22:25:06
|
Hello all, Sorry, if this isn't the right place to post but I'm new to geotools. I'm trying to create an application that displays moving 2D graphics superimposed upon a map of some kind. However, I do not want to repaint the map everytime I do this (i.e. I want to paint the last buffered image of the map, when it was initialised or the last pan, zoom, rotate occured, and then draw my moving 2D graphics upon this). An example of this might be a car moving across the map (without the map being redrawn), or simply a red line spinning round and round at high speed upon a map (not redrawn). Does the geotools api provide a mechanism to do this, or will I have to extend JMapPane in order to achieve this effect? I am also aware of JLayeredPane and the functionality that is provides, but I am not sure if this is the best of achieving this. Thanks in advance, j |