List of usage examples for com.google.gwt.maps.client.overlays GroundOverlayOptions newInstance
public final static GroundOverlayOptions newInstance()
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*/ }