Examples of GInfoWindowTab


Examples of wicket.contrib.gmap.api.GInfoWindowTab

        target.addComponent(feedback);
      }
    });
    map.addControl(GControl.GSmallMapControl);
    map.getInfoWindow().open(new GLatLng(37.5, -122.1),
        new GInfoWindowTab("One", new HelloPanel()),
        new GInfoWindowTab("Two", new HelloPanel()));
    add(map);

    infoWindow = new Label("infoWindow", "openInfoWindow");
    infoWindow.add(new AjaxEventBehavior("onclick")
    {
View Full Code Here

Examples of wicket.contrib.gmap.api.GInfoWindowTab

          GLatLng latLng)
      {
        if (status == GeocoderException.G_GEO_SUCCESS)
        {
          bottomMap.getInfoWindow().open(latLng,
              new GInfoWindowTab(address, new Label(address, address)));
        }
        else
        {
          error("Unable to geocode (" + status + ")");
          target.addComponent(feedback);
        }
      };
    });
    geocodeForm.add(button);

    // Using ServerGeocoder the geocoding request
    // is performed on the server using Googles HTTP interface.
    // http://www.google.com/apis/maps/documentation/services.html#Geocoding_Direct
    geocodeForm.add(new AjaxButton("server", geocodeForm)
    {

      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form)
      {
        try
        {
          String address = addressTextField.getDefaultModelObjectAsString();

          GLatLng latLng = GeoCodeGMapApplication.get().getServerGeocoder().findAddress(address);

          bottomMap.getInfoWindow().open(latLng,
              new GInfoWindowTab(address, new Label(address, address)));
        }
        catch (IOException e)
        {
          target.appendJavaScript("Unable to geocode (" + e.getMessage() + ")");
        }
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.