List of usage examples for com.google.gwt.maps.client.overlays GroundOverlay newInstance
public final static GroundOverlay newInstance(String url, LatLngBounds bounds, GroundOverlayOptions options)
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 }