Examples of InfoWindow


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

  }

  private void hideInfoWindow() {
    // Hide that info window if need be
    MapWidget map = _mapOverlayManager.getMapWidget();
    InfoWindow window = map.getInfoWindow();
    window.close();
  }
View Full Code Here

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

    LocalSearchResult entry = result.getLocalSearchResult();

    LatLng point = LatLng.newInstance(entry.getLat(), entry.getLon());
    MapWidget map = _mapOverlayManager.getMapWidget();
    InfoWindow window = map.getInfoWindow();
    window.open(point, new InfoWindowContent(panel));
  }
View Full Code Here

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

   * Private Methods
   ****/

  private void showPlaceInfoWindow(Place place, boolean includeSelectionLink) {
    LatLng p = place.getLocation();
    InfoWindow window = _map.getInfoWindow();

    FlowPanel panel = new FlowPanel();

    FlowPanel rowA = new FlowPanel();
    panel.add(rowA);
    rowA.add(new SpanWidget(place.getName()));

    if (includeSelectionLink) {
      FlowPanel rowB = new FlowPanel();
      panel.add(rowB);
      Anchor anchor = new Anchor("Show nearby stops");
      anchor.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent arg0) {

        }
      });
      rowB.add(anchor);
    }

    window.open(p, new InfoWindowContent(panel));
  }
View Full Code Here

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

      DivPanel anchorRow = new DivPanel();
      panel.add(anchorRow);
      anchorRow.add(anchor);

      InfoWindow window = _map.getInfoWindow();
      LatLng point = LatLng.newInstance(stop.getLat(), stop.getLon());
      window.open(point, new InfoWindowContent(panel));
    }
View Full Code Here

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

        LatLng pto = LatLng.create(new Double(trozos[0]), new Double(
            trozos[1]));

        InfoWindowOptions infoWindowOpts = InfoWindowOptions.create();
        infoWindowOpts.setContent("<h4>" + trozos[2] + "</h4>");
        final InfoWindow infoWindow = InfoWindow.create(infoWindowOpts);
        MarkerOptions markerOpts = MarkerOptions.create();
        markerOpts.setPosition(pto);
        markerOpts.setTitle(trozos[2]);
        markerOpts.setMap(map);
        final Marker marc = Marker.create(markerOpts);
        marc.addClickListener(new ClickHandler() {

          @Override
          public void handle(MouseEvent event) {
            infoWindow.open(map, marc);
          }

        });
      }
    }
View Full Code Here

Examples of com.googlecode.maps3.client.InfoWindow

   
    float lat = Float.parseFloat(split[0]);
    float lon = Float.parseFloat(split[1]);
    final LatLng point = LatLng.newInstance(lat, lon);
   
    infoWindow = new InfoWindow();
    infoWindow.setPosition(point);
  }
View Full Code Here

Examples of graphics.InfoWindow

   
    public ChatEngine(){
      this.settings=new Settings();
      conversation = new Conversation();
      connectWindow = new ConnectWindow();
        infoWindow = new InfoWindow();
        settingsWindow = new SettingsWindow();
        mainWindow = new MainWindow();
       
       
        mainWindow.setVisible(true);
View Full Code Here

Examples of org.earth3d.jearth.util.InfoWindow

        );
        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHelpActionPerformed
        InfoWindow frame = new InfoWindow();
        frame.setLocationRelativeTo(null);
        frame.getJLabelHelp().setText("<html><h1>Create an own map</h1><p>It is quite easy to " +
                "create and load an own map. To create a map, you first need a \"configuration file\" where you " +
                "specify which input files to use:</p>" +
                "<pre>&lt;mapCreationConfig&gt;<br>"+
                "  &lt;map filename=\"world.200404.3x5400x2700.jpg\" x=\"0\" y=\"0\" width=\"1\" height=\"1\" /&gt<br>"+
                "  &lt;heightfield filename=\"testheight.png\" x=\"0\" y=\"0\" width=\"1\" height=\"1\" /&gt;<br>"+
                "&lt;/mapCreationConfig&gt;" +
                "</pre>"+
                "<p>You can have multiple maps and heightfields. They will be added in the given order, which is " +
                "important if their coordinates overlap. The coordinate range goes from 0 to 1 in double precision. So " +
                "if you just want to insert a map for the western hemisphere, you would use the coordinates (0,0,0.5,1).</p>" +
                "<p>The heightfield is given as grayscale png file, where white pixels are high points/mountains and darker/black " +
                "pixels are lower points.</p>" +
                "<p>With this file and a given output directory, you can start the map creation.</p>" +
                "<p>When the map creation has finished, a file service.sxml should have been created in the " +
                "output directory that can be opened with File-&gt;Open URL.</p>" +
                "</html>");
        frame.pack();
        frame.setVisible(true);
    }//GEN-LAST:event_jButtonHelpActionPerformed
View Full Code Here

Examples of org.timepedia.chronoscope.client.InfoWindow

    return MathUtil.isBounded(x, mx, mx2) && y > plot.getInnerBounds().y
        && y < plot.getInnerBounds().y + plot.getInnerBounds().height;
  }

  public InfoWindow openInfoWindow(String html) {
    InfoWindow infoWindow = plot.getChart().getView()
        .createInfoWindow(html, domainX, rangeY);
    infoWindow.open();
    return infoWindow;
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.InfoWindow

    return false;
  }

  public InfoWindow openInfoWindow(String html) {
    InfoWindow infoWindow = plot.getChart().getView().createInfoWindow(html,
        plot.getDomain().midpoint(), (rangeHigh + rangeLow) / 2);
    infoWindow.open();
    return infoWindow;
  }
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.