Uploaded image for project: 'Geomajas GWT2 client'
  1. Geomajas GWT2 client
  2. GWTII-39

If one animated repositioning of the map is still busy, a second one is ignored

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Main API
    • Labels:
      None

      Description

      The following code in org.geomajas.puregwt.client.map.render.MapRendererImpl causes the bug:

       
      public void onViewPortTranslated(ViewPortTranslatedEvent event) {
      		if (viewPort.getScale() > 0 && !animation.isRunning()) {
      			navigateTo(viewPort.getBounds(), viewPort.getScale(), 0);
      		}
      	}	
      

      (Note MapRendererImpl.onViewPortTranslating() also contains the test of animation.isRunning)

      If animation.isRunning is true, a new getViewPort().applyPosition() call(resulting in an ViewPortTranslatedEvent() is ignored. This should not be the case!

        Attachments

          Activity

            People

            • Assignee:
              pieter Pieter De Graef
              Reporter:
              anb An Buyle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: