esri = function () {
/// <summary>The esri namespace.</summary>
};
esri.hide = function (element) {
/// <summary>Hides an HTML element such as a DIV or TABLE</summary>
/// <param name="element" type="Element" optional="false">The name of the HTML element.</param>
};
esri.show = function (element) {
/// <summary>Shows an HTML element such as a DIV or TABLE</summary>
/// <param name="element" type="Element" optional="false">The name of the HTML element.</param>
};
esri.toggle = function (element) {
/// <summary>If an HTML element is currently visible, the element is hidden.</summary>
/// <param name="element" type="Element" optional="false">The name of the HTML element.</param>
};
esri.getGeometries = function (graphics) {
/// <summary>Converts an array of graphics to an array of geometries.</summary>
/// <param name="graphics" type="Graphic[]" optional="false">Array of graphics to convert to geometries</param>
/// <return type="Geometry[]">Geometry[]</return>
};
esri.graphicsExtent = function (graphics) {
/// <summary>Utility function that returns the extent of an array of graphics.</summary>
/// <param name="graphics" type="Graphic[]" optional="false">The input graphics array.</param>
/// <return type="Extent">Extent</return>
};
esri.filter = function (object,callback,thisObject) {
/// <summary>Creates a new object with all properties that pass the test implemented by the filter provided in the function</summary>
/// <param name="object" type="Object" optional="false">Object to filter.</param>
/// <param name="callback" type="Function" optional="false">Function or string implementing the filtering.</param>
/// <param name="thisObject" type="Object" optional="false">Optional object used to scope the call to the callback.</param>
/// <return type="Object">Object</return>
};
esri.isDefined = function (value) {
/// <summary>Returns true when the value is neither null or undefined.</summary>
/// <param name="value" type="Object" optional="false">The value to test.</param>
/// <return type="Boolean">Boolean</return>
};
esri.substitute = function (data,template,first) {
/// <summary>A wrapper around dojo.string.substitute that can also handle wildcard substitution.</summary>
/// <param name="data" type="Object" optional="false">The data object used in the substitution.</param>
/// <param name="template" type="String" optional="true">The template used for the substitution. Can be any valid HTML. If no template is included, the wildcard template is used.</param>
/// <param name="first" type="Boolean" optional="true">When true, returns only the first property found in the data object. The default is false.</param>
/// <return type="String">String</return>
};
esri.valueOf = function (array,value) {
/// <summary>Iterates through the argument array and searches for the identifier to which the argument value matches.</summary>
/// <param name="array" type="Array" optional="false">The argument array for testing.</param>
/// <param name="value" type="Object" optional="false">The value used in the search. If the value is a String, the value is case sensitive.</param>
/// <return type="Object">Object</return>
};
esri.request = function (request,options) {
/// <summary>Retrieve data from a remote server or upload a file from a user's computer.</summary>
/// <param name="request" type="Object" optional="false">request argument is an object with the following properties that describe the request. Property Name Type Description url String Request URL. (required) content Object If the request url points to a web server that requires parameters, specify them here. The default value is null. form Object If the request is to upload a file, specify the form element that contains the file input control here. The default value is null. Starting at version 3.3, the form parameter can be an instance of FormData. Using FormData you can send a "multipart/form-data" request to the server without having to create an HTML form element in markup. Note that the FormData api is not available in all browsers. handleAs String Response format. Valid values are 'json', 'xml', 'text'. The default value is 'json'. callbackParamName String Name of the callback parameter (a special service parameter) to be specified when requesting data in JSONP format. It is ignored for all other data formats. For ArcGIS services the value is always 'callback'. timeout Number Indicates the amount of time to wait for a response from the server. The default is 60000 milliseconds (one minute). Set to 0 to wait indefinitely. </param>
/// <param name="options" type="Object" optional="true">options argument is an object with the following properties representing various options supported by this function. Property Name Type Description usePost Boolean Indicates the request should be made using HTTP POST method. Default is false i.e., determined automatically based on the request size. useProxy Boolean Indicates the request should use the proxy. Default is false i.e., determined automatically based on the domain of the request url disableIdentityLookup Boolean If true, prevents esri.request from triggering user authentication for this request. Default is false i.e., user authentication will be performed if asked by the server. </param>
/// <return type="dojo.Deferred">dojo.Deferred</return>
};
esri.request.setRequestPreCallback = function () {
/// <summary>Define a callback function that will be called just before esri.request calls into dojo IO functions such as dojo.rawXhrPost and dojo.io.script.get.</summary>
};
esri.addProxyRule = function (rule) {
/// <summary>Adds the given proxy rule to the proxy rules list: esri.config.defaults.io.proxyRules.</summary>
/// <param name="rule" type="Object" optional="false">The rule argument should have the following properties:proxyUrl - URL for the proxy.urlPrefix - URL prefix for resources that need to be accessed through the given proxy.</param>
/// <return type="Number">Number</return>
};
esri.getProxyRule = function () {
/// <summary>Returns the proxy rule that matches the given url</summary>
/// <return type="Object">Object</return>
};
esri.urlToObject = function (url) {
/// <summary>Converts the URL arguments to an object representation.</summary>
/// <param name="url" type="String" optional="false">The input URL.</param>
/// <return type="Object">Object</return>
};
esri.Credential = function () {
/// <field name="expires" type="String">Token expiration time specified as number of milliseconds since 1 January 1970 00:00:00 UTC</field>
/// <field name="isAdmin" type="Boolean">Indicates whether this credential belongs to a user with admin privileges</field>
/// <field name="server" type="String">The server url</field>
/// <field name="ssl" type="Boolean">Indicates whether the resources accessed using this credential should be fetched over HTTPS protocol</field>
/// <field name="token" type="String">Token generated by the token service using the specified userId and password</field>
/// <field name="userId" type="String">User associated wth the Credential object</field>
};
esri.Credential.prototype =
{
destroy: function () {
/// <summary>Destroy a credential.</summary>
},
refreshToken: function () {
/// <summary>Generate a new token and update the Credential's token property with the newly acquired token.</summary>
/// <return type="dojo.Deferred">dojo.Deferred</return>
},
toJson: function () {
/// <summary>Return the properties of this object in JSON</summary>
/// <return type="Object">Object</return>
},
};
esri.Graphic = function (geometry,sym
- 1
- 2
前往页