|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwtopenmaps.openlayers.client.util.JSObjectWrapper org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper org.gwtopenmaps.openlayers.client.layer.Layer org.gwtopenmaps.openlayers.client.layer.HTTPRequestLayer
public class HTTPRequestLayer
Wrapper of OpenLayers.Layer.HTTPRequest in OpenLayers. Renamed HTTPREquest to HTTPRequestLayer so it is not confused with HTTPRequest in GWT. HTTPRequest in GWT provides functionality to make basic HTTP requests. HTTPRequestLayer in GWT-OL supports ... From OL API docs:
Field Summary |
---|
Fields inherited from class org.gwtopenmaps.openlayers.client.layer.Layer |
---|
ARCGIS93REST_CLASS_NAME, BOXES_CLASS_NAME, GOOGLE_CLASS_NAME, GRIDLAYER_CLASS_NAME, HTTPREQUESTLAYER_CLASS_NAME, IMAGE_CLASS_NAME, MARKERS_CLASS_NAME, OSM_CLASS_NAME, TMS_CLASS_NAME, VECTOR_CLASS_NAME, WMS_CLASS_NAME, XYZ_CLASS_NAME |
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper |
---|
eventListeners |
Constructor Summary | |
---|---|
protected |
HTTPRequestLayer(JSObject httpRequestLayer)
|
|
HTTPRequestLayer(String name,
String[] urls,
WMSParams params)
Constructor: HTTPRequestLayer Parameters: name - {String} url - {Array (String)} params - {WMSParams} |
|
HTTPRequestLayer(String name,
String[] urls,
WMSParams params,
HTTPRequestLayerOptions options)
Constructor: HTTPRequestLayer Parameters: name - {String} url - {Array (String)} params - {WMSParams} options - {HTTPRequestLayerOptions} Hashtable of extra options to tag onto the layer |
|
HTTPRequestLayer(String name,
String url,
WMSParams params)
Constructor: HTTPRequestLayer Parameters: name - {String} url - {String} params - {WMSParams} |
|
HTTPRequestLayer(String name,
String url,
WMSParams params,
HTTPRequestLayerOptions options)
Constructor: HTTPRequestLayer Parameters: name - {String} url - {String} params - {WMSParams} options - {HTTPRequestLayerOptions} Hashtable of extra options to tag onto the layer |
Method Summary | |
---|---|
HTTPRequestLayer |
clone(HTTPRequestLayer obj)
APIMethod: clone Parameters: obj - {HTTPRequest} Returns: {HTTPRequest} An exact clone of this HTTPRequest |
void |
destroy()
APIMethod: destroy |
String |
getFullRequestString(WMSParams newParams,
String altUrl)
Method: getFullRequestString Combine url with layer's params and these newParams. |
boolean |
mergeNewParams(Params params)
APIMethod: mergeNewParams Parameters: newParams - {Object} Returns: redrawn: {Boolean} whether the layer was actually redrawn. |
HTTPRequestLayer |
narrowToHTTPRequestLayer(JSObject httpRequestLayer)
|
boolean |
redraw(boolean force)
|
String |
selectUrl(String paramString,
String url)
Method: selectUrl selectUrl() implements the standard floating-point multiplicative hash function described by Knuth, and hashes the contents of the given param string into a float between 0 and 1. |
void |
setUrl(String newUrl)
APIMethod: setUrl Parameters: newUrl - {String} |
Methods inherited from class org.gwtopenmaps.openlayers.client.layer.Layer |
---|
addLayerLoadCancelListener, addLayerLoadEndListener, addLayerLoadStartListener, addLayerVisibilityChangedListener, addOptions, displayInLayerSwitcher, getId, getName, getOpacity, getZIndex, isBaseLayer, isVisible, narrowToLayer, redraw, setDisplayInLayerSwitcher, setIsBaseLayer, setIsVisible, setName, setOpacity, setZIndex |
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper |
---|
getListeners, narrowToOpenLayersEObjectWrapper, removeListener |
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper |
---|
getClassName, getEvents, narrowToOpenLayersObjectWrapper |
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper |
---|
getJSObject, setJSObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HTTPRequestLayer(JSObject httpRequestLayer)
public HTTPRequestLayer(String name, String url, WMSParams params, HTTPRequestLayerOptions options)
public HTTPRequestLayer(String name, String url, WMSParams params)
public HTTPRequestLayer(String name, String[] urls, WMSParams params, HTTPRequestLayerOptions options)
public HTTPRequestLayer(String name, String[] urls, WMSParams params)
Method Detail |
---|
public HTTPRequestLayer narrowToHTTPRequestLayer(JSObject httpRequestLayer)
public void destroy()
public HTTPRequestLayer clone(HTTPRequestLayer obj)
public void setUrl(String newUrl)
public boolean mergeNewParams(Params params)
public boolean redraw(boolean force)
force
- - if true force redraw by adding random parameter to getMap request
If force is false or null no random parameters are added, in that case
the browser may cache the getMap request, thus not redrawing the mappublic String selectUrl(String paramString, String url)
public String getFullRequestString(WMSParams newParams, String altUrl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |