Package wicket.contrib.gmap.api

Examples of wicket.contrib.gmap.api.GPoint


  private GOverlay createOverlay(String title, GLatLng latLng, String image, String shadow)
  {
    GIcon icon = new GIcon(urlFor(new PackageResourceReference(RefreshPointPage.class, image), null)
        .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


    add(map);

    GIcon icon = new GIcon(urlFor(new PackageResourceReference(CustomPointPage.class, "image.gif"), null)
        .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

Related Classes of wicket.contrib.gmap.api.GPoint

Copyright © 2018 www.massapicom. 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.