Package org.wicketstuff.gmap

Examples of org.wicketstuff.gmap.GMap


{
  private static final long serialVersionUID = 1L;

    public ZoomLimitPage()
    {
        GMap map = new GMap("map");
        map.setStreetViewControlEnabled(false);
        map.setScaleControlEnabled(true);
        map.setScrollWheelZoomEnabled(true);
        map.setCenter(new GLatLng(52.47649, 13.228573));       
        map.setMinZoom(6);
        map.setMaxZoom(10);
        add(map);
    }
View Full Code Here


                info("InfoWindow " + infoWindow.getId() + " was closed");
                target.add(feedback);
            }
        };

        map = new GMap("bottomPanel");
        map.setOutputMarkupId(true);
        map.setMapType(GMapType.SATELLITE);
        map.setScrollWheelZoomEnabled(true);
        map.add(new ClickListener()
        {
View Full Code Here

    private static final long serialVersionUID = 1L;
    private final GMap map;

    public GGroundOverlayPage()
    {
        map = new GMap("map");
        map.setCenter(new GLatLng(40.740, -74.18));
        map.setZoom(12);

        // ground overlay
View Full Code Here

                info("InfoWindow " + infoWindow.getId() + " was closed");
                target.add(feedback);
            }
        };

        map = new GMap("bottomPanel");
        map.setOutputMarkupId(true);
        map.setMapType(GMapType.SATELLITE);
        map.setScrollWheelZoomEnabled(true);
        map.add(new ClickListener()
        {
View Full Code Here

    private void buildGui() {

        final EntityCollectionModel model = getModel();
        final List<ObjectAdapter> adapterList = model.getObject();

        final GMap map = new GMap(ID_MAP);
        map.setStreetViewControlEnabled(true);
        map.setScaleControlEnabled(true);
        map.setScrollWheelZoomEnabled(true);
        map.setPanControlEnabled(true);
        map.setDoubleClickZoomEnabled(true);

        // centre the map on the first object that has a location.
        for (ObjectAdapter adapter : adapterList) {
            GLatLng latLng = asGLatLng((Locatable)adapterList.get(0).getObject());
            if(latLng != null) {
                map.setCenter(latLng);
                break;
            }
        }
       
        addOrReplace(map);
View Full Code Here

TOP

Related Classes of org.wicketstuff.gmap.GMap

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.