|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.Maps
public class Maps
A collection of static methods and API wide constants.
Method Summary | |
---|---|
static void |
assertLoaded()
Check for the availability of the maps API. |
static java.lang.String |
getVersion()
Return the Maps API Version currently loaded. |
static boolean |
isBrowserCompatible()
Returns true if the current browser supports the maps API
library. |
static boolean |
isLoaded()
Check for the availability of the Maps API. |
static boolean |
isRTL()
Returns true if the application's UI layout is right-to-left
in bidirectional languages such as Arabic or Hebrew. |
static void |
loadMapsApi(java.lang.String key,
java.lang.String version,
boolean usingSensor,
AjaxLoader.AjaxLoaderOptions settings,
java.lang.Runnable onLoad)
Initializes the Maps API using the AjaxLoader. |
static void |
loadMapsApi(java.lang.String key,
java.lang.String version,
boolean usingSensor,
java.lang.Runnable onLoad)
Initializes the Maps API using the AjaxLoader. |
static void |
logWrite(java.lang.String message)
Writes the message as plain text into the log window. |
static void |
logWrite(java.lang.String message,
java.lang.String color)
Writes the message as plain text into the log window. |
static void |
logWriteHtml(java.lang.String html)
Writes text as HTML in the log window. |
static void |
logWriteUrl(java.lang.String url)
Writes a link to the given URL into the log window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void assertLoaded()
public static java.lang.String getVersion()
public static boolean isBrowserCompatible()
true
if the current browser supports the maps API
library.
true
if the current browser supports the maps API
library.public static boolean isLoaded()
true
if the Maps API is loaded.public static boolean isRTL()
true
if the application's UI layout is right-to-left
in bidirectional languages such as Arabic or Hebrew.
Note: because bidirectional languages such as Arabic and Hebrew affect the
layout of the GInfoWindow object, these languages are only selected if
explicitly requested via an applicable hl
parameter or through
the addition of the allow_bidi=true parameter to the API bootstrap request.
For more information about BCP 47, see the W3 documentation.
true
if the application's UI layout is right-to-left
in bidirectional languages such as Arabic or Hebrew.public static void loadMapsApi(java.lang.String key, java.lang.String version, boolean usingSensor, AjaxLoader.AjaxLoaderOptions settings, java.lang.Runnable onLoad)
key
- Maps API key. See http://code.google.com/apis/maps/signup.htmlversion
- The version of the maps API to load. For example, "2.x"usingSensor
- Use of the Google Maps API now requires that you
indicate whether your application is using a sensor (such as a GPS
locator) to determine the user's location. This is especially
important for mobile devices.settings
- other AjaxLoader settings for the Maps API. This parameter
must not be null
.onLoad
- callback to be invoked when the library is loaded.public static void loadMapsApi(java.lang.String key, java.lang.String version, boolean usingSensor, java.lang.Runnable onLoad)
key
- Maps API key. See http://code.google.com/apis/maps/signup.htmlversion
- The version of the maps API to load. For example, "2.x"usingSensor
- Use of the Google Maps API now requires that you
indicate whether your application is using a sensor (such as a GPS
locator) to determine the user's location. This is especially
important for mobile devices.onLoad
- callback to be invoked when the library is loaded.public static void logWrite(java.lang.String message)
message
- the message to write to the log window.public static void logWrite(java.lang.String message, java.lang.String color)
message
- the message to write to the log window.color
- CSS color specification for the text.public static void logWriteHtml(java.lang.String html)
html
- message to write into the log window.public static void logWriteUrl(java.lang.String url)
url
- URL to write into the log window.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |