Package wicket.contrib.gmap

Examples of wicket.contrib.gmap.GMap2.addControl()


      }
    });
    topMap.setZoom(10);
    GMarkerOptions options = new GMarkerOptions("Home").draggable(true).autoPan(true);
    topMap.addOverlay(new GMarker(new GLatLng(37.4, -122.1), options));
    topMap.addControl(GControl.GLargeMapControl);
    topMap.addControl(GControl.GMapTypeControl);
    add(topMap);

    final IModel<GMarker> markerModel = new Model<GMarker>(null);
    markerLabel = new Label("markerLabel", markerModel);
View Full Code Here


    });
    topMap.setZoom(10);
    GMarkerOptions options = new GMarkerOptions("Home").draggable(true).autoPan(true);
    topMap.addOverlay(new GMarker(new GLatLng(37.4, -122.1), options));
    topMap.addControl(GControl.GLargeMapControl);
    topMap.addControl(GControl.GMapTypeControl);
    add(topMap);

    final IModel<GMarker> markerModel = new Model<GMarker>(null);
    markerLabel = new Label("markerLabel", markerModel);
    markerLabel.add(new AjaxEventBehavior("onclick")
View Full Code Here

   * Constructor
   */
  public HomePage()
  {
    final GMap2 map = new GMap2("map", GMapExampleApplication.get().getGoogleMapsAPIkey());
    map.addControl(GControl.GLargeMapControl);
    add(map);
    final WebMarkupContainer repeaterParent = new WebMarkupContainer("repeaterParent");
    repeaterParent.setOutputMarkupId(true);
    add(repeaterParent);
    final RepeatingView rv = new RepeatingView("label");
View Full Code Here

  private MoveEndListener moveEndBehavior;

  public HomePage()
  {
    final GMap2 map = new GMap2("map", GMapExampleApplication.get().getGoogleMapsAPIkey());
    map.addControl(GControl.GLargeMapControl);
    add(map);
    map.add(new LoadListener()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  public HomePage()
  {
    final GMap2 topMap = new GMap2("topPanel", GMapExampleApplication.get()
        .getGoogleMapsAPIkey());
    topMap.addControl(GControl.GLargeMapControl);
    add(topMap);

    GMarkerOptions options = new GMarkerOptions().draggable(true);
    final GMarker marker = new GMarker(topMap.getCenter(), options);
    final Label label = new Label("label", new PropertyModel<GLatLng>(marker,
View Full Code Here

  public HomePage()
  {
    final GMap2 map = new GMap2("topPanel", GMapExampleApplication.get()
        .getGoogleMapsAPIkey());
    map.addControl(GControl.GMapTypeControl);
    add(map);

    final WebMarkupContainer zoomIn = new WebMarkupContainer("zoomIn");
    zoomIn.add(map.new ZoomInBehavior("onclick"));
    add(zoomIn);
View Full Code Here

    final GMap2 bottomMap = new GMap2("bottomPanel", new GMapHeaderContributor(
        GMapExampleApplication.get().getGoogleMapsAPIkey()));
    bottomMap.setOutputMarkupId(true);
    bottomMap.setMapType(GMapType.G_SATELLITE_MAP);
    bottomMap.addControl(GControl.GSmallMapControl);
    add(bottomMap);

    Form<Object> geocodeForm = new Form<Object>("geocoder");
    add(geocodeForm);
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.