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

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

Introduction

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

Prototype

public final static GroundOverlayOptions newInstance() 

Source Link

Document

creates GroundOverlay options

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  ww  .j  a  v a 2  s .  c om*/
}