Examples of worldToView()


Examples of org.geomajas.gwt.client.spatial.WorldViewTransformer.worldToView()

      // mapView.applyBounds(overviewBox.union(targetBox), MapView.ZoomOption.LEVEL_FIT);
      // super.onMapViewChanged(null);
    }

    // calculate boxSize
    Coordinate viewBegin = transformer.worldToView(targetBox.getOrigin());
    Coordinate viewEnd = transformer.worldToView(targetBox.getEndPoint());

    double width = Math.abs(viewEnd.getX() - viewBegin.getX());
    double height = Math.abs(viewEnd.getY() - viewBegin.getY());
    viewBegin.setY(viewBegin.getY() - height);
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.WorldViewTransformer.worldToView()

      // super.onMapViewChanged(null);
    }

    // calculate boxSize
    Coordinate viewBegin = transformer.worldToView(targetBox.getOrigin());
    Coordinate viewEnd = transformer.worldToView(targetBox.getEndPoint());

    double width = Math.abs(viewEnd.getX() - viewBegin.getX());
    double height = Math.abs(viewEnd.getY() - viewBegin.getY());
    viewBegin.setY(viewBegin.getY() - height);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.