org.gwtopenmaps.openlayers.client
Class OpenLayers

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.OpenLayers

public class OpenLayers
extends Object

Methods for interacting with the global OpenLayers object.


Constructor Summary
OpenLayers()
           
 
Method Summary
static double getDotPerInch()
           
static int getImageReloadAttempts()
           
static double getInchesPerUnitMeter()
           
static String getProxyHost()
           
static void setDotPerInch(double value)
           
static void setImageReloadAttempts(int attempts)
          Sets the IMAGE_RELOAD_ATTEMPTS property on the OpenLayers Object.
static void setProxyHost(String proxyhost)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenLayers

public OpenLayers()
Method Detail

setProxyHost

public static void setProxyHost(String proxyhost)
Parameters:
proxyhost - - the relative path to the proxyhost, including the parameter that takes the url to forward the request to as value. For example: "GwtOpenlayersProxy?resourceUrl="

getProxyHost

public static String getProxyHost()
Returns:
the proxyhost that has been set, or null if no proxyHost has been set

setImageReloadAttempts

public static void setImageReloadAttempts(int attempts)
Sets the IMAGE_RELOAD_ATTEMPTS property on the OpenLayers Object.

Parameters:
attempts - - the number of times OpenLayers will try to load an image that is requested over HTTP after the first attempt failed

getImageReloadAttempts

public static int getImageReloadAttempts()
Returns:
the number of times OpenLayers will try to load an image that is requested over HTTP after the first attempt failed - by default this is 0 (that is, one try)

getDotPerInch

public static double getDotPerInch()
Returns:
default 72

setDotPerInch

public static void setDotPerInch(double value)
Parameters:
value -

getInchesPerUnitMeter

public static double getInchesPerUnitMeter()


Copyright © 2011 sourceforge. All Rights Reserved.