Examples of GMarkerOptions


Examples of org.wicketstuff.gmap.api.GMarkerOptions

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

            double longitude = minLon + (double)(Math.random() * ((maxLon - minLon) + 1));
         
            GLatLng glatlng = new GLatLng(latitude, longitude);
            markersToShow.add(glatlng);
           
            map.addOverlay(new GMarker("marker"+i, new GMarkerOptions(map, glatlng)));
            mapDefault.addOverlay(new GMarker("marker"+i, new GMarkerOptions(mapDefault, glatlng)));
        }
       
        // set some options
        GMarkerClusterOptions options = new GMarkerClusterOptions();
        options.setMinimumClusterSize(3);
View Full Code Here

Examples of org.wicketstuff.gmap.api.GMarkerOptions

        map.fitMarkers(glatLngsToShow);
    }

    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.wicketstuff.gmap.api.GMarkerOptions

       
        GLatLng gLatLng = asGLatLng(locatable);
        if(gLatLng == null) {
            return null;
        }
        final GMarkerOptions markerOptions = new GMarkerOptions(
                map, gLatLng,
                adapter.titleString(null)   ).draggable(false);
        return markerOptions;
    }
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarkerOptions

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

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

Examples of wicket.contrib.gmap.api.GMarkerOptions

        {
          if (map.getOverlays().size() >= 3)
          {
            map.removeOverlay(map.getOverlays().get(0));
          }
          final MyMarker marker = new MyMarker(latLng, new GMarkerOptions()
              .draggable(true))
          {
            private static final long serialVersionUID = 1L;

            @Override
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarkerOptions

    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,
        "latLng"));
    label.setOutputMarkupId(true);
    add(label);
View Full Code Here

Examples of wicket.contrib.gmap.api.GMarkerOptions

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