title: animation on map with jmapframe - geotools
body: <p>I am using <a href="http://www.geotools.org/" rel="nofollow noreferrer">geotools</a> library to animate a polygon on a map.
  By using <strong>JMapPane</strong> it is possible to do animation smoothly. ex:<a href="http://svn.osgeo.org/geotools/tags/2.6.1/demo/example/src/main/java/org/geotools/demo/swing/AnimatedMapPane.java" rel="nofollow noreferrer">AnimatedMapPane</a></p>
  
  <p>However, the problem with it is that I can not use it with <strong>JMapFrame</strong> and I have to use <strong>JFrame</strong>.
  I want to use JMapFrame because it offers a lot more features compared JFrame like showing layers, zoom buttons etc.</p>
  
  <p>Can I add JMapPane as a layer to JMapFrame? (A layer for map, another layer for animation objects)</p>
  
  <p>In addition, I considered making dynamic layer to make animation. But as indicated <a href="https://gis.stackexchange.com/questions/10212/geotools-dynamic-layer">here</a> it causes flickering and answer suggests the usage of JMapPane.</p>