Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.MapUIOptions


    private void doApply() {
      panel.remove(map);
      panel.remove(controlPanel);
      map = newMapWidget();

      MapUIOptions options = MapUIOptions.newInstance(size);
      options.setDoubleClick(doubleClick.getValue());
      options.setHybridMapType(hybridMapType.getValue());
      options.setKeyboard(keyboard.getValue());
      options.setLargeMapControl3d(largeControl3d.getValue());
      options.setMapTypeControl(mapTypeControl.getValue());
      options.setMenuMapTypeControl(menuMapTypeControl.getValue());
      options.setNormalMapType(normalMapType.getValue());
      options.setPhysicalMapType(physicalMapType.getValue());
      options.setSatelliteMapType(satelliteMapType.getValue());
      options.setScaleControl(scaleControl.getValue());
      options.setScrollwheel(scrollwheel.getValue());
      options.setSmallZoomControl3d(smallZoomControl3d.getValue());

      map.setUI(options);
      panel.add(map);
      panel.add(controlPanel);
    }
View Full Code Here


    private void doResetDefaults() {
      panel.remove(map);
      panel.remove(controlPanel);
      map = newMapWidget();

      MapUIOptions options = MapUIOptions.newInstance(size);
      doubleClick.setValue(options.getDoubleClick());
      hybridMapType.setValue(options.getHybridMapType());
      keyboard.setValue(options.getKeyboard());
      largeControl3d.setValue(options.getLargeMapControl3d());
      mapTypeControl.setValue(options.getMapTypeControl());
      menuMapTypeControl.setValue(options.getMenuMapTypeControl());
      normalMapType.setValue(options.getNormalMapType());
      physicalMapType.setValue(options.getPhysicalMapType());
      satelliteMapType.setValue(options.getSatelliteMapType());
      scaleControl.setValue(options.getScaleControl());
      scrollwheel.setValue(options.getScrollwheel());
      smallZoomControl3d.setValue(options.getSmallZoomControl3d());

      map.setUI(options);
      panel.add(map);
      panel.add(controlPanel);
    }
View Full Code Here

    // Go to Paris
    map = new MapWidget(LatLng.newInstance(48.859068, 2.344894), 12);
    map.setSize("500px", "400px");

    // Change the default UI controls a bit to help with drawing.
    MapUIOptions options = map.getDefaultUI();
    options.setScrollwheel(false);
    options.setDoubleClick(false);
    options.setLargeMapControl3d(true);
    map.setUI(options);
    map.setDoubleClickZoom(false);
    map.setDraggable(false);

    VerticalPanel panel = new VerticalPanel();
View Full Code Here

  public ClickDemo() {
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "300px");
    initWidget(map);
    // Workaround for bug with click handler & setUItoDefaults() - see issue 260
    MapUIOptions opts = map.getDefaultUI();
    opts.setDoubleClick(false);
    map.setUI(opts);

    map.addMapClickHandler(new MapClickHandler() {
      public void onClick(MapClickEvent e) {
        MapWidget sender = e.getSender();
View Full Code Here

    map = new MapWidget(LatLng.newInstance(0, 0), 1);
    outer.add(map);
    map.setSize("500px", "300px");
    initWidget(outer);
    // Workaround for bug with click handler & setUItoDefaults() - see issue 260
    MapUIOptions opts = map.getDefaultUI();
    opts.setDoubleClick(false);
    map.setUI(opts);

    map.addMapClickHandler(new MapClickHandler() {

      public void onClick(final MapClickEvent event) {
View Full Code Here

  private TravelMap(boolean doubleClickToZoom) {
    map = new MapWidget();
    map.setSize("100%", "100%");
    map.setCenter(zero, 0);
    MapUIOptions options = MapUIOptions.newInstance(Size.newInstance(200, 200));
    options.setDoubleClick(doubleClickToZoom);
    map.setUI(options);
    DockLayoutPanel panel = new DockLayoutPanel(Unit.PCT);
    panel.add(map);
    initWidget(panel);
  }
View Full Code Here

    map.setSize("700px", "600px");

    map.setCenter(LatLng.newInstance(17.45, 78.39, true), 4);
    marker = new Marker(LatLng.newInstance(17.45, 78.39, true));
    map.setCenter(marker.getLatLng());
    MapUIOptions opts = map.getDefaultUI();
    opts.setDoubleClick(false);
    map.setUI(opts);
    map.addOverlay(marker);
    marker.setDraggingEnabled(true);

    if (needSlider) {
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.MapUIOptions

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.