Package org.geomajas.gwt.client.widget

Examples of org.geomajas.gwt.client.widget.ScaleSelect


  private ScaleSelect scaleSelect;

  public ScaleSelectAction(MapWidget mapWidget) {
    super("", ""); // dummy icon and tooltip
    scaleSelect = new ScaleSelect(mapWidget);
  }
View Full Code Here


    // wait for the map to be loaded cause we need a correct map.getPixelPerUnit
    map.getMapModel().addMapModelHandler(new MapModelHandler() {

      public void onMapModelChange(MapModelEvent event) {
        ScaleSelect scaleSelect = new ScaleSelect(map.getMapModel().getMapView(), map.getPixelPerUnit());
        Double[] customScales = new Double[] { 1.0 / 100000000.0, 1.0 / 50000000.0, 1.0 / 2500000.0 };
        scaleSelect.setScales(customScales);
        toolbar.addChild(scaleSelect);
      }
    });

    return layout;
View Full Code Here

    // wait for the map to be loaded cause we need a correct map.getPixelPerUnit
    map.getMapModel().addMapModelHandler(new MapModelHandler() {

      public void onMapModelChange(MapModelEvent event) {
        ScaleSelect scaleSelect = new ScaleSelect(map.getMapModel().getMapView(), map.getPixelPerUnit());
        toolbar.addMember(scaleSelect);
      }
    });

    return layout;
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.widget.ScaleSelect

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.