Examples of GOverlay


Examples of org.wicketstuff.gmap.api.GOverlay

                new GIcon("/pin.gif").setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));
        GIcon shadow =
                new GIcon("/shadow.png").setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));
        GOverlay marker = new GMarker(new GMarkerOptions(map, new GLatLng(52.37649, 4.888573), "My Title", icon, shadow));

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

Examples of org.wicketstuff.gmap.api.GOverlay

    public RefreshPointPage()
    {
        map = new GMap("map");
        add(map);

        GOverlay overlay = createOverlay("Amsterdam", new GLatLng(52.37649, 4.888573), "pin.gif", "shadow.png");

        map.addOverlay(overlay);

        map.add(new AbstractAjaxTimerBehavior(Duration.seconds(5))
        {
            private static final long serialVersionUID = 1L;
            private int i = 1;

            @Override
            protected void onTimer(AjaxRequestTarget target)
            {
                if (updateOverlays)
                {
                    GOverlay newOverlay;
                    if (i % 3 == 0)
                    {
                        newOverlay = createOverlay("Amsterdam", new GLatLng(52.37649, 4.888573), "pin.gif", "shadow.png");
                        i = 0;
                    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GOverlay

        {
            final Request request = RequestCycle.get().getRequest();

            final String overlayId = request.getRequestParameters().getParameterValue("overlay.overlayId").toString().replace("overlay", "");
            final String event = request.getRequestParameters().getParameterValue("overlay.event").toString();
            final GOverlay overlay = overlays.get(overlayId);
            if (overlay != null)
            {
                overlay.onEvent(target, GEvent.valueOf(event));
            }
        }
View Full Code Here

Examples of wicket.contrib.gmap.api.GOverlay

  public RefreshPointPage()
  {
    map = new GMap2("map", GMapExampleApplication.get().getGoogleMapsAPIkey());
    add(map);

    GOverlay overlay = createOverlay("Amsterdam", new GLatLng(52.37649, 4.888573), "image.gif",
        "shadow.png");

    map.addOverlay(overlay);

    map.add(new GMapAutoUpdatingBehavior(Duration.seconds(5))
    {
      private static final long serialVersionUID = 1L;

      private int i = 1;

      @Override
      protected void onTimer(AjaxRequestTarget target, GMap2 map)
      {
        GOverlay overlay;
        if (i % 3 == 0)
        {
          overlay = createOverlay("Amsterdam", new GLatLng(52.37649, 4.888573),
              "image.gif", "shadow.png");
          i = 0;
View Full Code Here

Examples of wicket.contrib.gmap.api.GOverlay

  @Override
  protected void onEvent(AjaxRequestTarget target) {
    Request request = RequestCycle.get().getRequest();

    GOverlay overlay = null;
    GLatLng latLng = null;

    String markerParameter = request.getRequestParameters().getParameterValue("argument0").toString();
    if (markerParameter != null) {
      for (GOverlay ovl : getGMap2().getOverlays()) {
View Full Code Here

Examples of wicket.contrib.gmap.api.GOverlay

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