Package wicket.contrib.gmap

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


      if (sequence != null && sequence.getLatitude() != 0 && sequence.getLongitude() != 0){
        GMarker wicketLibrary = new GMarker(new GLatLng(sequence.getLatitude(), sequence.getLongitude()));
     
            //new EmptyPanel("gmarkerInfo"));//("gmarkerInfo", sequence, current));
//            new DescriptionPanel("gmarkerInfo", current.getFile().getAbsolutePath().substring(settings.getImageDirectoryRoot().getAbsolutePath().length(), current.getFile().getAbsolutePath().length())));
            gmap.addOverlay(wicketLibrary);
      }
     
    }
   
//    GMapPanel mapPanel = new GMapPanel("gmap", gmap, 800, 600,
View Full Code Here


          topMap.getInfoWindow().open(marker, new HelloPanel());
        }
        else if (latLng != null)
        {
          marker = new GMarker(latLng);
          topMap.addOverlay(marker);
        }
        markerSelected(target, marker);
      }
    });
    topMap.setZoom(10);
View Full Code Here

        markerSelected(target, marker);
      }
    });
    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);
View Full Code Here

          GMarker random = new GMarker(new GLatLng(point.getLat()
              * (0.9995 + Math.random() / 1000), point.getLng()
              * (0.9995 + Math.random() / 1000)));

          topMap.addOverlay(random);
        }
      }
    });
    add(markerLabel);

View Full Code Here

  public PolygonesPage()
  {
    GMap2 map = new GMap2("topPanel", GMapExampleApplication.get()
        .getGoogleMapsAPIkey());
    map.addOverlay(new GPolygon("#000000", 4, 0.7f, "#E9601A", 0.7f, new GLatLng(37.3, -122.4),
        new GLatLng(37.2, -122.2), new GLatLng(37.3, -122.0), new GLatLng(37.4, -122.2),
        new GLatLng(37.3, -122.4)));
    map.addOverlay(new GPolyline("#FFFFFF", 8, 1.0f, new GLatLng(37.35, -122.3), new GLatLng(
        37.25, -122.25), new GLatLng(37.3, -122.2), new GLatLng(37.25, -122.15),
        new GLatLng(37.35, -122.1)));
View Full Code Here

    GMap2 map = new GMap2("topPanel", GMapExampleApplication.get()
        .getGoogleMapsAPIkey());
    map.addOverlay(new GPolygon("#000000", 4, 0.7f, "#E9601A", 0.7f, new GLatLng(37.3, -122.4),
        new GLatLng(37.2, -122.2), new GLatLng(37.3, -122.0), new GLatLng(37.4, -122.2),
        new GLatLng(37.3, -122.4)));
    map.addOverlay(new GPolyline("#FFFFFF", 8, 1.0f, new GLatLng(37.35, -122.3), new GLatLng(
        37.25, -122.25), new GLatLng(37.3, -122.2), new GLatLng(37.25, -122.15),
        new GLatLng(37.35, -122.1)));
    map.setZoom(10);
    add(map);
  }
View Full Code Here

        {
          if (map.getOverlays().size() >= 3)
          {
            map.removeOverlay(map.getOverlays().get(0));
          }
          map.addOverlay(new GMarker(latLng));
        }
      }
    });
  }
}
View Full Code Here

                }
              };
            }

          };
          map.addOverlay(marker);
          marker.addListener(GEvent.dragend, marker.getDragendHandler());
          rv.removeAll();
          for (GOverlay myMarker : map.getOverlays())
          {
            final GOverlayPanel label = new GOverlayPanel(myMarker.getId(),
View Full Code Here

      public void onEvent(AjaxRequestTarget target)
      {
        target.addComponent(label);
      }
    });
    topMap.addOverlay(marker);
  }
}
View Full Code Here

        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
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.