Package wicket.contrib.gmap.api

Examples of wicket.contrib.gmap.api.GLatLng


        info("InfoWindow was opened");
        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")
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.ajax.AjaxEventBehavior#onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
       */
      @Override
      protected void onEvent(AjaxRequestTarget target)
      {
        map.getInfoWindow().open(new GLatLng(37.5, -122.1), new HelloPanel());
      }
    });
    add(infoWindow);
    add(new Link<Object>("reload")
    {
View Full Code Here


      {
        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)
View Full Code Here

  public CustomPointPage()
  {
    GMap2 map = new GMap2("map", GMapExampleApplication.get()
        .getGoogleMapsAPIkey());
    map.setCenter(new GLatLng(52.37649, 4.888573));
    add(map);

    GIcon icon = new GIcon(urlFor(new PackageResourceReference(CustomPointPage.class, "image.gif"), null)
        .toString(), urlFor(new PackageResourceReference(CustomPointPage.class, "shadow.png"), null)
        .toString()).iconSize(new GSize(64, 64)).shadowSize(new GSize(64, 64)).iconAnchor(
        new GPoint(19, 40)).infoWindowAnchor(new GPoint(9, 2)).infoShadowAnchor(
        new GPoint(18, 25));

    GOverlay marker = new GMarker(new GLatLng(52.37649, 4.888573), new GMarkerOptions(
        "My Title", icon));

    map.addOverlay(marker);
  }
View Full Code Here

TOP

Related Classes of wicket.contrib.gmap.api.GLatLng

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.