001 package com.google.gwt.maps.client.services; 002 003 import com.google.gwt.core.client.JavaScriptObject; 004 005 /** 006 * A MaxZoom result in JSON format retrieved from the MaxZoomService. 007 * <br><br> 008 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#MaxZoomResult">MaxZoomResult API Doc</a> 009 */ 010 public class MaxZoomResult extends JavaScriptObject { 011 012 /** 013 * generated from callback 014 * use newInstance(); 015 */ 016 protected MaxZoomResult() {} 017 018 /** 019 * A MaxZoom result in JSON format retrieved from the MaxZoomService. 020 */ 021 public static final MaxZoomResult newInstance() { 022 return JavaScriptObject.createObject().cast(); 023 } 024 025 /** 026 * Status of the request. 027 * @param status 028 */ 029 public final void setStatus(MaxZoomStatus status) { 030 setStatusImpl(status.value()); 031 } 032 033 private final native void setStatusImpl(String status) /*-{ 034 this.status = status; 035 }-*/; 036 037 /** 038 * Status of the request. 039 */ 040 public final MaxZoomStatus getStatus() { 041 return MaxZoomStatus.fromValue(getStatusImpl()); 042 } 043 044 private final native String getStatusImpl() /*-{ 045 return this.status; 046 }-*/; 047 048 /** 049 * The maximum zoom level found at the given LatLng. 050 * @param zoom 051 */ 052 public final native void setZoom(int zoom) /*-{ 053 this.zoom = zoom; 054 }-*/; 055 056 /** 057 * The maximum zoom level found at the given LatLng. 058 */ 059 public final native int getZoom() /*-{ 060 return this.zoom; 061 }-*/; 062 063 }