Package org.wicketstuff.examples.gmap.zoomlimit

Source Code of org.wicketstuff.examples.gmap.zoomlimit.ZoomLimitPage

package org.wicketstuff.examples.gmap.zoomlimit;

import org.wicketstuff.examples.gmap.WicketExamplePage;
import org.wicketstuff.gmap.GMap;
import org.wicketstuff.gmap.api.GLatLng;

/**
* ZoomLimitPage for the wicket-contrib-gmap3 project. This page creates a GMap with a set min and max zoom level.
*/
public class ZoomLimitPage extends WicketExamplePage
{
  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);
    }
}
TOP

Related Classes of org.wicketstuff.examples.gmap.zoomlimit.ZoomLimitPage

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.