Example usage for com.google.gwt.maps.client.overlays GroundOverlay newInstance

List of usage examples for com.google.gwt.maps.client.overlays GroundOverlay newInstance

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.overlays GroundOverlay newInstance.

Prototype

public final static GroundOverlay newInstance(String url, LatLngBounds bounds, GroundOverlayOptions options) 

Source Link

Document

Creates a ground overlay from the provided image URL and its LatLngBounds.

Usage

From source file:com.google.gwt.maps.testing.client.maps.OverlayViewMapWidget.java

License:Apache License

private void drawOverlay_GroundOverlay() {
    String url = "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg";
    LatLng sw = LatLng.newInstance(40.716216, -74.213393);
    LatLng ne = LatLng.newInstance(40.765641, -74.139235);
    LatLngBounds bounds = LatLngBounds.newInstance(sw, ne);
    GroundOverlayOptions options = GroundOverlayOptions.newInstance();

    groundOverlay = GroundOverlay.newInstance(url, bounds, options);
    groundOverlay.setMap(mapWidget);//from   w w w. j  a v  a  2  s.c  o m
}