<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    The rendering engine is stateless by default, but we have some
    possible alternatives.<br>
    <br>
    Solution 1 :<br>
    final JMap2D jmap = new JMap2D();<br>
    jmap.getCanvas().setRenderingHint(GO2Hints.KEY_BEHAVIOR_MODE,
    GO2Hints.BEHAVIOR_KEEP_TILE);<br>
    This will ask the swing widget to replace the image at the last
    moment when possible, it should reduce the flickering.<br>
    You can also try the 'GO2Hints.BEHAVIOR_ON_FINISH'<br>
    <br>
    Solution 2 :<br>
    final JMap2D jmap = new JMap2D(true);<br>
    The boolean argument is for 'statefull', the engine will cache more
    informations and use separate buffers<br>
    for each layer. But it use more memory.<br>
    <br>
    Solution 3 :<br>
    There is also the solution to create a custom decoration over the
    map,<br>
    A demo is available in the demo-samples module, package :
    org.geotoolkit.pending.demo.rendering.customdecoration<br>
    But it require a lot more work.<br>
    <br>
    <br>
    <br>
    Johann Sorel<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/10/2016 06:51, Gopinath Asutosh
      wrote:<br>
    </div>
    <blockquote cite="mid:1585690080.80113.1476247891798@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div id="yui_3_16_0_ym19_1_1476247003393_2725">Hi ,</div>
        <div id="yui_3_16_0_ym19_1_1476247003393_2831" dir="ltr">I want
          to show over 100 objects representing vehicles moving on GIS
          map. The locations of vehicle change every 10 secs.</div>
        <div dir="ltr" id="yui_3_16_0_ym19_1_1476247003393_2939">I tried
          to create a circle with its center located on GPS coordinates
          obtained from devices mounted on vehicles. Whenever new
          coordinates are received I create a new circle and call
          store.updateFeatures. This plots the circles on new location
          but it also simultaneously causes the screen to flicker a lot
          due to which the animation effect is lost.<br>
        </div>
        <div dir="ltr" id="yui_3_16_0_ym19_1_1476247003393_3021"><br>
        </div>
        <div dir="ltr" id="yui_3_16_0_ym19_1_1476247003393_2937">It is
          possible to animate any object using geotoolkit without
          causing the screen to flicker.</div>
        <div dir="ltr" id="yui_3_16_0_ym19_1_1476247003393_3171"><br>
        </div>
        <div dir="ltr" id="yui_3_16_0_ym19_1_1476247003393_3174">Thanks
          and regards</div>
        <div dir="ltr" id="yui_3_16_0_ym19_1_1476247003393_3175">Asutosh
          Gopinath<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Geotoolkit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geotoolkit@lists.osgeo.org">Geotoolkit@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geotoolkit">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a></pre>
    </blockquote>
    <br>
  </body>
</html>