Package wicket.contrib.gmap.api

Examples of wicket.contrib.gmap.api.GLatLngBounds


    map.setCenter(new GLatLng(40.740, -74.18));
    map.setZoom(12);

    // ground overlay

    GLatLngBounds boundaries = new GLatLngBounds(new GLatLng(40.716216, -74.213393),
        new GLatLng(40.765641, -74.139235));
    GGroundOverlay oldmap = new GGroundOverlay(
        "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", boundaries);
    map.addOverlay(oldmap);
    add(map);
View Full Code Here


              throw new UnsupportedOperationException();
            }

            public String convertToString(Object value, Locale locale)
            {
              GLatLngBounds bounds = (GLatLngBounds)value;

              StringBuffer buffer = new StringBuffer();
              buffer.append("NE (");
              buffer.append(bounds.getNE().getLat());
              buffer.append(",");
              buffer.append(bounds.getNE().getLng());
              buffer.append(")\nSW (");
              buffer.append(bounds.getSW().getLat());
              buffer.append(",");
              buffer.append(bounds.getSW().getLng());
              buffer.append(")");
              return buffer.toString();
            }
          };
        }
View Full Code Here

TOP

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

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.