/** * Constructor: HTTPRequestLayer * * Parameters: * name - {String} * url - {String} * params - {WMSParams} * options - {HTTPRequestLayerOptions} Hashtable of extra options to tag onto the layer */ public HTTPRequestLayer(String name, String url, WMSParams params,HTTPRequestLayerOptions options){ this(HTTPRequestLayerImpl.create(name, url, params.getJSObject(), options.getJSObject())); }
/** * APIMethod: mergeNewParams * * Parameters: newParams - {Object} * * Returns: redrawn: {Boolean} whether the layer was actually redrawn. */ public boolean mergeNewParams(Params params) { return HTTPRequestLayerImpl.mergeNewParams(getJSObject(), params.getJSObject()); }
/** * APIMethod: clone * * Parameters: * obj - {HTTPRequest} * * Returns: * {HTTPRequest} An exact clone of this HTTPRequest */ public HTTPRequestLayer clone(HTTPRequestLayer obj){ return new HTTPRequestLayer(HTTPRequestLayerImpl.Clone(getJSObject(), obj.getJSObject())); }
public WMS(String name, String url, WMSParams params, WMSOptions layerParams) { this(WMSImpl.create(name, url, params.getJSObject(), layerParams.getJSObject())); }
public GridLayer(String name, String url, WMSParams params, GridLayerOptions options) { this(GridLayerImpl.create(name, url, params.getJSObject(), options.getJSObject())); }
/** * APIProperty: isBaseLayer * {Boolean} Default is true for ArcGIS93Rest layer */ public void setIsBaseLayer(boolean isBaseLayer){ ArcGIS93RestImpl.setIsBaseLayer(getJSObject(), isBaseLayer); }
/** * Destroy all features in the vector layer */ public void destroyFeatures() { VectorImpl.destroyFeatures(getJSObject()); }
/** * Method: setLayerFilter * addTile creates a tile, initializes it, and adds it to the layer div. * * Parameters: * id - {String} The id of the layer to which the filter applies. * queryDef - {String} A sql-ish query filter, for more detail see the ESRI * documentation at http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/export.html */ public void setLayerFilter(String id,String queryDef){ ArcGIS93RestImpl.setLayerFilter(getJSObject(), id, queryDef); }
/** * Constructor with specified options. * @param name the layer name * @param url example http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer/tile/${z}/${y}/${x} * @param options constructor options */ public XYZ(String name, String url, XYZOptions options) { this(XYZImpl.create(name, url, options.getJSObject())); }
/** * Indicates if the Layer should be displayed in the LayerSwitcher Control. * * @return true if the layer should be displayed in the LayerSwitcher Control, * false if the layer should be hidden */ public boolean displayInLayerSwitcher(){ return LayerImpl.displayInLayerSwitcher(getJSObject()); }
/** * @return String - the url of the Image */ public String getUrl(){ return ImageImpl.getUrl(getJSObject()); } }
/** * @param 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 map * */ public boolean redraw(boolean force) { return LayerImpl.redraw(getJSObject(), force); }
/** * Sets all resolutions for the layer. * @param resolutions A list of map resolutions (map units per pixel) in descending order. */ public void setResolutions(double[] resolutions) { LayerImpl.setResolutions(this.getJSObject(), resolutions); }
/** * Method: getZIndex * * Returns: {Integer} the z-index of this layer */ public Object getZIndex() { return LayerImpl.getZIndex(getJSObject()); }
/** * Constructor: HTTPRequestLayer * * Parameters: name - {String} url - {String} params - {WMSParams} options - * {HTTPRequestLayerOptions} Hashtable of extra options to tag onto the * layer */ public HTTPRequestLayer(String name, String url, WMSParams params, HTTPRequestLayerOptions options) { this(HTTPRequestLayerImpl.create(name, url, params.getJSObject(), options.getJSObject())); }
/** * APIMethod: mergeNewParams * * Parameters: * newParams - {Object} * * Returns: * redrawn: {Boolean} whether the layer was actually redrawn. */ public boolean mergeNewParams(Params params){ return HTTPRequestLayerImpl.mergeNewParams(getJSObject(), params.getJSObject()); }
/** * APIMethod: clone * * Parameters: obj - {HTTPRequest} * * Returns: {HTTPRequest} An exact clone of this HTTPRequest */ public HTTPRequestLayer clone(HTTPRequestLayer obj) { return new HTTPRequestLayer(HTTPRequestLayerImpl.Clone(getJSObject(), obj.getJSObject())); }
/** * APIProperty: isBaseLayer {Boolean} Default is true for ArcGIS93Rest layer */ public void setIsBaseLayer(boolean isBaseLayer) { ArcGIS93RestImpl.setIsBaseLayer(getJSObject(), isBaseLayer); }
/** * Destroy all features in the vector layer */ public void destroyFeatures() { VectorImpl.destroyFeatures(getJSObject()); }
/** * Method: setLayerFilter addTile creates a tile, initializes it, and adds * it to the layer div. * * Parameters: id - {String} The id of the layer to which the filter * applies. queryDef - {String} A sql-ish query filter, for more detail see * the ESRI documentation at * http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/export.html */ public void setLayerFilter(String id, String queryDef) { ArcGIS93RestImpl.setLayerFilter(getJSObject(), id, queryDef); }