001 package com.google.gwt.maps.client.streetview; 002 003 import com.google.gwt.core.client.JavaScriptObject; 004 import com.google.gwt.maps.client.base.LatLng; 005 006 /** 007 * A representation of a location in the Street View panorama. 008 * <br><br> 009 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#StreetViewLocation">StreetViewLocation API Doc</a> 010 */ 011 public class StreetViewLocation extends JavaScriptObject { 012 013 /** 014 * A representation of a location in the Street View panorama. 015 * use newInstance(); 016 */ 017 protected StreetViewLocation() {} 018 019 /** 020 * creates A representation of a location in the Street View panorama. 021 */ 022 public final static StreetViewLocation newInstance() { 023 return JavaScriptObject.createObject().cast(); 024 } 025 026 /** 027 * sets A localized string describing the location. 028 * @param description 029 */ 030 public final native void setDescription(String description) /*-{ 031 this.description = description; 032 }-*/; 033 034 /** 035 * gets A localized string describing the location. 036 */ 037 public final native String getDescription() /*-{ 038 return this.description; 039 }-*/; 040 041 /** 042 * sets The latlng of the panorama. 043 * @param latLng 044 */ 045 public final native void setLatLng(LatLng latLng) /*-{ 046 this.latLng = latLng; 047 }-*/; 048 049 /** 050 * gets The latlng of the panorama. 051 */ 052 public final native LatLng getLatLng() /*-{ 053 return this.latLng; 054 }-*/; 055 056 /** 057 * sets A unique identifier for the panorama. This is stable within a session but unstable across sessions. 058 * @param pano 059 */ 060 public final native void setPano(String pano) /*-{ 061 this.pano = pano; 062 }-*/; 063 064 /** 065 * gets A unique identifier for the panorama. This is stable within a session but unstable across sessions. 066 */ 067 public final native String getPano() /*-{ 068 return this.pano; 069 }-*/; 070 071 072 }