Examples of GMarker


Examples of org.wicketstuff.gmap.api.GMarker

        GIcon shadowIcon =
                new GIcon("/" + shadow).setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));

        map.setCenter(latLng);
        return new GMarker(new GMarkerOptions(map, latLng, title, icon, shadowIcon));
    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GMarker

    private void addMarkers(final GMap map, List<ObjectAdapter> adapterList) {

        List<GLatLng> glatLngsToShow = Lists.newArrayList();
        for (ObjectAdapter adapter : adapterList) {

            final GMarker gMarker = createGMarker(map, adapter);
            if(gMarker != null) {
                map.addOverlay(gMarker);
                addClickListener(gMarker, adapter);
                glatLngsToShow.add(gMarker.getLatLng());
            }
        }

        map.fitMarkers(glatLngsToShow);
    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GMarker

    private GMarker createGMarker(GMap map, ObjectAdapter adapter) {
        GMarkerOptions markerOptions = buildMarkerOptions(map, adapter);
        if(markerOptions == null)
            return null;
        return new GMarker(markerOptions);
    }
View Full Code Here

Examples of org.zkoss.gmaps.Gmarker

          + state  + "</span><br/><span style=\"color:red\">"
          + numOfCase  + "</span> cases<br/><span style=\"color:red\">"
          + numOfDeath + "</span> death<div style=\"background-color:#cfc;padding:2px\">"
          + description + "</div>";

      Gmarker gmarker = new Gmarker();
      gmarkerArray[row] = gmarker;
      gmarker.setLat(lat);
      gmarker.setLng(lng);
      gmarker.setContent(content);
      mymap.appendChild(gmarker);

      if (row == 2) {
        mymap.setLat(lat);
        mymap.setLng(lng);
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarker

    String basePath = settings.getImageDirectoryRoot().getAbsolutePath();
    for (Folder current : folders){
     
      Sequence sequence = ImageUtils.readSequence(current.getFile());
      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);
      }
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarker

      private static final long serialVersionUID = 1L;

      @Override
      protected void onClick(AjaxRequestTarget target, GLatLng latLng, GOverlay overlay)
      {
        GMarker marker = (overlay instanceof GMarker) ? (GMarker)overlay : null;
        if (marker != null)
        {
          topMap.getInfoWindow().open(marker, new HelloPanel());
        }
        else if (latLng != null)
        {
          marker = new GMarker(latLng);
          topMap.addOverlay(marker);
        }
        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);
    markerLabel = new Label("markerLabel", markerModel);
    markerLabel.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)
      {
        GMarker marker = markerModel.getObject();
        if (marker != null)
        {
          GLatLng point = marker.getLatLng();

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

          topMap.addOverlay(random);
        }
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarker

        .toString(), urlFor(new PackageResourceReference(RefreshPointPage.class, shadow), 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));
    map.setCenter(latLng);
    return new GMarker(latLng, new GMarkerOptions(title, icon));
  }
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarker

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

Examples of wicket.contrib.gmap.api.GMarker

        .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,
        "latLng"));
    label.setOutputMarkupId(true);
    add(label);
    marker.addListener(GEvent.dragend, new GEventHandler()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public void onEvent(AjaxRequestTarget target)
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarker

    });

    // show the markers
    if (showMarkersForPoints) {
      for (GLatLng location : markersToShow) {
        this.addOverlay(new GMarker(location));
      }
    }
  }
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.