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

Maximum scale of a vector server layer should be applied inclusive

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: Main API
    • Labels:
      None
    • CLA:
      I have read and agree with the Geomajas CLA for the attachments

      Description

      Currently the minimum scale is applied exclusive and the maximum scale exclusive.
      One of the two must indeed be applied exclusive and the other one inclusive.
      The maximum scale is inclusive when following SLD conventions.

      Code that must be corrected:

      In org.geomajas.gwt.client.map.layer.VectorServerLayerImpl.isVisible():

      (I fixed the code below on 19-Nov-15, the tests were wrong!

      OLD: return (maxScale <= viewPort.getScale() && viewPort.getScale() < minScale);
      FIXED: return (maxScale <= viewPort.getScale() && viewPort.getScale() > minScale);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jandm Jan De Moerloose
                Reporter:
                anb An Buyle
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: