Package org.geomajas.gwt.client.controller

Examples of org.geomajas.gwt.client.controller.PanController


    // Build a map, and set a PanController:
    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    final MapWidget map = new MapWidget("mapLegend", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    // Build the LayerTree:
    final LayerTree layerTree = new LayerTree(map);
    layerTree.setHeight(180);
View Full Code Here


    // Map with ID crsMap is defined in the XML configuration. (mapOsm.xml)
    final MapWidget map = new MapWidget("mapCrs", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));
    layout.addMember(map);

    return layout;
  }
View Full Code Here

    buttonLayout.setShowEdges(true);

    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    final MapWidget map = new MapWidget("mapLegend", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    IButton rasterButton = new IButton("Toggle Raster layer");
    rasterButton.addClickHandler(new ClickHandler() {
View Full Code Here

    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);

    // Map with ID featureListGridMap is defined in the XML configuration.
    final MapWidget map = new MapWidget("mapEditableGrid", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    // Create a layout with a FeatureListGrid in it:
    final FeatureListGrid grid = new FeatureListGrid(map.getMapModel());
    grid.setShowEdges(true);
View Full Code Here

    // Map with ID mapOsm is defined in the XML configuration. (mapOsm.xml)
    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));

    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    mapLayout.setHeight("60%");
    mapLayout.addMember(map);
View Full Code Here

    // Build a map, and set a PanController:
    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    final MapWidget map = new MapWidget("mapLegend", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    // Layer order panel:
    VLayout orderLayout = new VLayout(10);
    orderLayout.setHeight(80);
View Full Code Here

    // Create map with Google layer, and add a PanController to it:
    VLayout mapLayout1 = new VLayout();
    mapLayout1.setShowEdges(true);
    googleMap = new MapWidget("mapGoogle", "gwt-samples");
    googleMap.setController(new PanController(googleMap));
    mapLayout1.addMember(googleMap);

    // Create map with Google layer (satellite), and add a PanController to it:
    VLayout mapLayout2 = new VLayout();
    mapLayout2.setShowEdges(true);
    googleSatMap = new MapWidget("mapGoogleSat", "gwt-samples");
    googleSatMap.setController(new PanController(googleSatMap));
    mapLayout2.addMember(googleSatMap);

    // Create map with Google layer (terrain), and add a PanController to it:
    VLayout mapLayout3 = new VLayout();
    mapLayout3.setShowEdges(true);
    googleTerrainMap = new MapWidget("mapGoogleTerrain", "gwt-samples");
    googleTerrainMap.setController(new PanController(googleTerrainMap));
    mapLayout3.addMember(googleTerrainMap);

    // Place all three in the layout:
    layout.addMember(mapLayout1);
    layout.addMember(mapLayout2);
View Full Code Here

    // Map with ID duisburgMap is defined in the XML configuration. (mapDuisburg.xml)
    final VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    mapLayout.setHeight("60%");
    map = new MapWidget("mapVectorSecurity", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    // Create horizontal layout for login buttons:
    HLayout buttonLayout = new HLayout();
    buttonLayout.setMembersMargin(10);

    // Create login handler that re-initializes the map on a successful login:
    final BooleanCallback initMapCallback = new BooleanCallback() {

      public void execute(Boolean value) {
        if (value) {
          map.destroy();
          map = new MapWidget("mapVectorSecurity", "gwt-samples");
          mapLayout.addMember(map);
          map.setController(new PanController(map));
        }
      }
    };

    // Create a button that logs in user "marino":
View Full Code Here

    // Map with ID wmsMap is defined in the XML configuration. (mapWms.xml)
    final MapWidget map = new MapWidget("mapWms", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));
    layout.addMember(map);

    return layout;
  }
View Full Code Here

    // Map with ID mapOsm is defined in the XML configuration. (mapOsm.xml)
    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));
    layout.addMember(map);
    return layout;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.controller.PanController

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.