Uploaded image for project: 'Geomajas GWT2 client - proposal'
  1. Geomajas GWT2 client - proposal
  2. PURE-41

Add the possibility to apply custom scaling in WorldContainer

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-M1
    • Component/s: None
    • Labels:
      None

      Description

      Object in world container are defined in world space, but current implementation does not allow these objects to decide how to represent themselves in screen space.

      Images, markers, etc... should not scale by default, while other features such as lines may need to scale in a different way (e.g. logarithmically). The setResizeChildren option is insufficient as it applies to the whole container. It is also hard to implement.
      Proposal is to define a world object interface that allows complete freedom in the scaling behavior by delegating to the object itself:

      public interface WorldObject {
      
      	VectorObject getVectorObject();
      
      	void scaleToScreen(double scaleX, double scaleY);
      
      }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: