001 package com.google.gwt.maps.client.placeslib;
002
003 import com.google.gwt.core.client.JavaScriptObject;
004 import com.google.gwt.maps.client.base.LatLng;
005 import com.google.gwt.maps.client.base.LatLngBounds;
006
007 /**
008 * Defines information about the geometry of a Place.
009 * <br><br>
010 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#PlaceGeometry">PlaceGeometry API Doc</a>
011 */
012 public class PlaceGeometry extends JavaScriptObject {
013
014 /**
015 * use newInstance();
016 */
017 protected PlaceGeometry() {}
018
019 /**
020 * Defines information about the geometry of a Place.
021 */
022 public static final PlaceGeometry newInstance() {
023 return JavaScriptObject.createObject().cast();
024 }
025
026 /**
027 * The Place's position.
028 * @param location
029 */
030 public final native void setLocation(LatLng location) /*-{
031 this.location = location;
032 }-*/;
033
034 /**
035 * The Place's position.
036 */
037 public final native LatLng getLocation() /*-{
038 return this.location;
039 }-*/;
040
041 /**
042 * The preferred viewport when displaying this Place on a map. This property will be null if the preferred viewport for the Place is not known.
043 * @param viewport
044 */
045 public final native void setViewPort(LatLngBounds viewport) /*-{
046 this.viewport = viewport;
047 }-*/;
048
049 /**
050 * The preferred viewport when displaying this Place on a map. This property will be null if the preferred viewport for the Place is not known.
051 */
052 public final native LatLngBounds getViewPort() /*-{
053 return this.viewport;
054 }-*/;
055
056 }