public class ESRI
extends java.lang.Object
Constructor and Description |
---|
ESRI() |
Modifier and Type | Method and Description |
---|---|
static void |
addCorsEnabledServers(java.lang.String server)
Specify an array of servers with cross-origin resource sharing enabled.
|
static void |
alwaysUseProxy(boolean useProxy)
Whether or not to always use the proxy for communication to a REST endpoint.
|
static void |
disableSliderLabel()
The slider will not show tick marks.
|
static void |
getItem(java.lang.String itemId)
Get details about the input ArcGIS.com item.
|
static void |
setCorsDetectionEnabled(boolean enabled)
Whether or not to detect support for cross-origin resource sharing (CORS).
|
static void |
setGeometryService(GeometryService service)
Specify the default geometry service used by widgets and operations.
|
static void |
setPanDuration(int duration)
The length of time in milliseconds that the map will take to pan from one extent to another.
|
static void |
setPanRate(int rate)
The length of time in milliseconds that the map will refresh as it pans to the next extent.
|
static void |
setProxyUrl(java.lang.String url)
The location of the proxy url that should be used when posting large payloads to an
endpoint.
|
static void |
setSlider(java.lang.String left,
java.lang.String top,
java.lang.String width,
java.lang.String height)
The parameters that define the location, size, and orientation of the slider.
|
static void |
setSliderLabel(int tick,
java.lang.String[] labels,
java.lang.String style)
The parameters that define the slider tick and accompanying tick label.
|
static void |
setTimeout(int timeout)
Each request through esri.request is allowed up to 60 seconds to respond.
|
static void |
setZoomDuration(int duration)
The length of time in milliseconds that the map will take to zoom from one extent to another.
|
static void |
setZoomRate(int rate)
The length of time in milliseconds that the map will refresh as it zooms to the next extent.
|
static void |
setZoomSymbol(SimpleFillSymbol zoomSymbol)
The SimpleFillSymbol to use to represent the color, fill, and outline properties of the RubberBand zoom.
|
public static void alwaysUseProxy(boolean useProxy)
useProxy
- public static void setCorsDetectionEnabled(boolean enabled)
public static void addCorsEnabledServers(java.lang.String server)
server
- - CORS enabled serverpublic static void setGeometryService(GeometryService service)
service
- - default geometry servicepublic static void setProxyUrl(java.lang.String url)
url
- - proxy urlpublic static void setTimeout(int timeout)
timeout
- - request timeout (in milliseconds)public static void setPanDuration(int duration)
duration
- - pan durationpublic static void setPanRate(int rate)
rate
- - refresh ratepublic static void setSlider(java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height)
left
- - left position of slidertop
- - top position of sliderwidth
- - slider widthheight
- - slider heightpublic static void setSliderLabel(int tick, java.lang.String[] labels, java.lang.String style)
tick
- - number of tickslabels
- - tick labelsstyle
- - style attribute for sliderpublic static void disableSliderLabel()
public static void setZoomDuration(int duration)
rate
- - zoom ratepublic static void setZoomRate(int rate)
rate
- - refresh ratepublic static void setZoomSymbol(SimpleFillSymbol zoomSymbol)
zoomSymbol
- public static void getItem(java.lang.String itemId)
itemId
-