Examples of OverviewMap


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

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

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);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

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

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);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

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

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

    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

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", mapWidget, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

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

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

    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

Examples of org.gwtopenmaps.openlayers.client.control.OverviewMap

                map.addLayer(osm);
                vectorLayer = new Vector("Fence");
                map.addLayer(vectorLayer);
                markers = new Markers("Markers");
                map.addLayer(markers);
                map.addControl(new OverviewMap());
                map.addControl(new ScaleLine());

                ModifyFeatureOptions featureOptions = new ModifyFeatureOptions();
                featureOptions.setMode(ModifyFeature.RESIZE);
                featureOptions.onModificationEnd(new ModifyFeature.OnModificationEndListener() {
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.control.OverviewMap

        map.addLayer(osm);
        vectorLayer = new Vector("Fence");
        map.addLayer(vectorLayer);
        markers = new Markers("Markers");
        map.addLayer(markers);
        map.addControl(new OverviewMap());
        map.addControl(new ScaleLine());

        ModifyFeatureOptions featureOptions = new ModifyFeatureOptions();
        featureOptions.setMode(ModifyFeature.RESIZE);
        featureOptions.onModificationEnd(new ModifyFeature.OnModificationEndListener() {
View Full Code Here

Examples of org.zkoss.openlayers.control.OverviewMap

               
        map1.addLayers(Arrays.asList(ol, jpl));
        map1.addControl(new LayerSwitcher());
       
        // create an overview map control with the default options
        Control overview1 = new OverviewMap(toMap(pair("maximized", true)));
        map1.addControl(overview1);
       
        map1.setCenter(new LonLat(0, 0), 2);
       
        // create the bottom map (with advanced overview map control)
        Map mapOptions = toMap(
            pair("maxExtent", new Bounds(-8242894.927728, 4965204.031195, -8227290.161511, 4994963.723637)),
            pair("maxResolution", 116.2487986015621),
            pair("projection", "EPSG:900913"),
            pair("units", "m")        );

       
        map2.setOptions(mapOptions);
        map2.addLayer(ny);
       
       
        // create an overview map control with non-default options
        Map controlOptions = toMap(
        pair("maximized", true),
        pair("mapOptions",
            mergeMap(mapOptions,
              pair("maxResolution", 156543.0339),
              pair("maxExtent", new Bounds(-20037508.34, -20037508.34,
                             20037508.34, 20037508.34)))
        ),
        pair("layers", Arrays.asList(jplOverview)
        ));
        Control overview2 = new OverviewMap(controlOptions);
        map2.addControl(overview2);
       
        map2.setCenter(new LonLat(-8233165.3575055, 4980298.21113769), 3);
  }
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.