001 package com.google.gwt.maps.client.services; 002 003 /** 004 * The status returned by the MaxZoomService on the completion of a call to getMaxZoomAtLatLng(). 005 * <br><br> 006 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#MaxZoomStatus">MaxZoomStatus API Doc</a> 007 */ 008 public enum MaxZoomStatus { 009 010 /** 011 * There was a problem contacting the Google servers. 012 */ 013 ERROR, 014 015 /** 016 * The response contains a valid MaxZoomResult. 017 */ 018 OK; 019 020 public String value() { 021 return name().toLowerCase(); 022 } 023 024 public static MaxZoomStatus fromValue(String type) { 025 return valueOf(type.toUpperCase()); 026 } 027 028 public String toString() { 029 return name(); 030 } 031 032 } 033