Examples of GIcon


Examples of org.wicketstuff.gmap.api.GIcon

       
        final Locatable locatable = (Locatable) adapter.getObject();
       
        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
       
        GLatLng gLatLng = asGLatLng(locatable);
        if(gLatLng == null) {
            return null;
        }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GIcon

       
        final Locatable locatable = (Locatable) adapter.getObject();
       
        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
       
        GLatLng gLatLng = asGLatLng(locatable);
        if(gLatLng == null) {
            return null;
        }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GIcon

    {
        GMap map = new GMap("map");
        map.setCenter(new GLatLng(52.37649, 4.888573));
        add(map);

        GIcon icon =
                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.GIcon

    private GOverlay createOverlay(String title, GLatLng latLng, String image, String shadow)
    {


        GIcon icon =
                new GIcon("/" + image).setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));
        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.GIcon

       
        final Locatable locatable = (Locatable) adapter.getObject();
       
        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
       
        GLatLng gLatLng = asGLatLng(locatable);
        if(gLatLng == null) {
            return null;
        }
View Full Code Here

Examples of wicket.contrib.gmap.api.GIcon

    });
  }

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

Examples of wicket.contrib.gmap.api.GIcon

    GMap2 map = new GMap2("map", GMapExampleApplication.get()
        .getGoogleMapsAPIkey());
    map.setCenter(new GLatLng(52.37649, 4.888573));
    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));
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.