GeoTools
  1. GeoTools
  2. GEOT-2798

repainting sometimes missed after panning in JMapPane

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.1, 2.7-M0
    • Component/s: None
    • Labels:
      None

      Description

      A user reported this problem via email...

      Hello Michael,

      I had problems with repainting map when using pan tool on JMapPane.
      Problem was that image is not repainted always after moving. I was free
      to experiment little with code in PanTool and add little change in onMouseReleased() method:

      javax.swing.SwingUtilities.invokeLater(new Runnable() {
      public void run()

      { getMapPane().repaint(); }

      });

      After that change i noticed that map is always repainted properly.

      I tried to isolate when map repainting problem happens. I think that it is when
      i zoom on the map and show all features with rich styling. What i am pretty sure is
      that it happens in situations when it is needed more time to GTRenderer to render map.

      I am not quite sure either why that fix my issue but i am tested it and it works. After sheduling
      repaint i never got situation that map is not repainted properly. Without that i got sometimes
      map with blank regions and when i minimize-maximize main frame i got map repainted.

        Issue Links

          Activity

          Hide
          Michael Bedward added a comment -
          Show
          Michael Bedward added a comment - see GEOT-2800

            People

            • Assignee:
              Michael Bedward
              Reporter:
              Michael Bedward
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: