Package org.geomajas.configuration.client

Examples of org.geomajas.configuration.client.ScaleConfigurationInfo


   */
  public void initialize(final ClientMapInfo mapInfo) {
    if (!initialized) {
      this.mapInfo = mapInfo;
      srid = Integer.parseInt(mapInfo.getCrs().substring(mapInfo.getCrs().indexOf(":") + 1));
      ScaleConfigurationInfo scaleConfigurationInfo = mapInfo.getScaleConfiguration();
      List<Double> realResolutions = new ArrayList<Double>();
      for (ScaleInfo scale : scaleConfigurationInfo.getZoomLevels()) {
        realResolutions.add(1. / scale.getPixelPerUnit());
      }
      mapView.setResolutions(realResolutions);
      mapView.setMaximumScale(scaleConfigurationInfo.getMaximumScale().getPixelPerUnit());
      // replace layers by new layers
      removeAllLayers();
      for (ClientLayerInfo layerInfo : mapInfo.getLayers()) {
        addLayer(layerInfo);
      }
View Full Code Here


  private double maximumScale;

  private Bbox maxBounds;

  protected FreeForAllZoomStrategy(ClientMapInfo mapInfo, Bbox maxBounds) {
    ScaleConfigurationInfo scaleConfigurationInfo = mapInfo.getScaleConfiguration();
    maximumScale = scaleConfigurationInfo.getMaximumScale().getPixelPerUnit();
    this.maxBounds = maxBounds;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.configuration.client.ScaleConfigurationInfo

Copyright © 2018 www.massapicom. 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.