Package org.geomajas.gwt.client.widget

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


    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    overviewMap.setTargetMaxExtentRectangleStyle(new ShapeStyle("#888888", 0.3f, "#666666", 0.75f, 2));
    overviewMap.setRectangleStyle(new ShapeStyle("#6699FF", 0.3f, "#6699CC", 1f, 2));
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);
View Full Code Here


    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    overviewMap.setTargetMaxExtentRectangleStyle(new ShapeStyle("#888888", 0.3f, "#666666", 0.75f, 2));
    overviewMap.setRectangleStyle(new ShapeStyle("#6699FF", 0.3f, "#6699CC", 1f, 2));
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);
View Full Code Here

    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
View Full Code Here

    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
View Full Code Here

    VLayout overviewMapLayout = new VLayout();
    overviewMapLayout.setShowEdges(true);
    overviewMapLayout.setWidth(300);

    // Create an overview map:
    final OverviewMap overviewMap = new OverviewMap("mapOverviewOsm", "gwt-samples", map, true, true);
    overviewMapLayout.addMember(overviewMap);

    // Create a layout for a few buttons:
    HLayout buttonLayout = new HLayout();
    buttonLayout.setHeight(20);
    buttonLayout.setAlign(VerticalAlignment.BOTTOM);
    buttonLayout.setMembersMargin(10);

    // ---------------------------------------------------------------------
    // Creating 3 buttons:
    // ---------------------------------------------------------------------

    // Button1: Toggle the rectangle style:
    IButton button1 = new IButton(I18nProvider.getSampleMessages().overviewMapToggleRectStyle());
    button1.addClickHandler(new ClickHandler() {

      private ShapeStyle nextStyle = new ShapeStyle("#000000", 0.6f, "#000000", 1, 1);

      public void onClick(ClickEvent event) {
        ShapeStyle temp = nextStyle;
        nextStyle = overviewMap.getRectangleStyle();
        overviewMap.setRectangleStyle(temp);
      }
    });
    button1.setWidth100();
    buttonLayout.addMember(button1);

    // Button2: Toggle the maximum extent style:
    IButton button2 = new IButton(I18nProvider.getSampleMessages().overviewMapToggleExtentStyle());
    button2.addClickHandler(new ClickHandler() {

      private ShapeStyle nextStyle = new ShapeStyle("#FF0000", 0.6f, "#FF0000", 1, 3);

      public void onClick(ClickEvent event) {
        ShapeStyle temp = nextStyle;
        nextStyle = overviewMap.getTargetMaxExtentRectangleStyle();
        overviewMap.setTargetMaxExtentRectangleStyle(temp);
      }
    });
    button2.setWidth100();
    buttonLayout.addMember(button2);

    // Button3: Toggle drawing the maximum extent:
    IButton button3 = new IButton(I18nProvider.getSampleMessages().overviewMapToggleExtent());
    button3.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        overviewMap.setDrawTargetMaxExtent(!overviewMap.isDrawTargetMaxExtent());
      }
    });
    button3.setWidth100();
    buttonLayout.addMember(button3);
View Full Code Here

    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", mapWidget, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
View Full Code Here

    originalSectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection osection1 = new SectionStackSection("Overview map");
    osection1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    osection1.addItem(overviewMap);
    originalSectionStack.addSection(osection1);

    // LayerTree layout:
    SectionStackSection osection2 = new SectionStackSection("Layer tree");
View Full Code Here

TOP

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

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.