|
POST
|
You'll probably get better answers from the Geoprocessing section of GeoNet, as this doesn't have anything to do with the JavaScript API.
... View more
04-04-2016
09:11 AM
|
1
|
0
|
1805
|
|
POST
|
It looks like the class you want to hide is esriLegendLayerLabel.
... View more
03-31-2016
10:19 AM
|
1
|
1
|
1327
|
|
POST
|
As far as I know Esri doesn't have anything like that. I was looking into this a while ago and came across this library that looks promising. I haven't had time yet to do much testing, though.
... View more
03-14-2016
09:48 AM
|
0
|
0
|
678
|
|
POST
|
<script src="//cdn.polyfill.io/v2/polyfill.min.js?features=default,Promise"></script> var sampleUrl = "//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer";
var badUrl = "//services.arcgisonline.com/ArcGIS/rest/services/Reference/FakeService/MapServer"
/**
* Tests a URL
* @param {string} url
* @returns {Promise}
*/
function testService(url) {
return new Promise(function(resolve, reject) {
var request = new XMLHttpRequest();
request.open("get", url + "?f=json");
request.onloadend = function() {
if (this.status !== 200) {
reject({error: this.status});
} else {
var response = JSON.parse(this.response);
if (response.error) {
reject(response);
} else {
resolve(response);
}
}
}
request.send();
});
}
[sampleUrl, badUrl].forEach(function(url) {
testService(url).then(function(response) {
console.debug(response)
}, function(error){
console.error(error);
});
});
... View more
03-10-2016
10:46 AM
|
2
|
0
|
1305
|
|
POST
|
You need to serve the HTML page from a web server rather than opening it from your file system. You'll want to find an IDE for web development which will make things a lot easier. For Windows I would recommend Visual Studio (Community Edition), but I don't know anything about Mac alternatives.
... View more
03-10-2016
10:21 AM
|
0
|
0
|
1041
|
|
POST
|
I just tested this out and was able to reproduce this issue in Chrome. The IME seems to be working correctly in Firefox Developer Edition. (I haven't tried the regular version of Firefox, but I suspect most users will be using the regular Firefox rather than the developer edition.) Note that this issue is not limited to the input of the Japanese language. I tested with a Chinese IME as well, and it has the same issue. For anyone who is not familiar with using IMEs and would like to reproduce the issue in your development environment, this article shows how to set up the IME in Windows.
... View more
03-10-2016
10:09 AM
|
1
|
0
|
801
|
|
POST
|
Have you tried using an HTTP POST request rather than GET to work around the URL length limit?
... View more
03-10-2016
09:50 AM
|
2
|
0
|
1217
|
|
POST
|
I'm not familiar with Cesium. Is your code sample just zooming to a feature?The esri/Map has various functions such as centerAt, centerAndZoom, and setExtent that can do this.
... View more
02-25-2016
10:11 AM
|
0
|
0
|
437
|
|
POST
|
I also did not realize you were referring to the Dojo checkbox dijit rather than a regular HTML checkbox. The sample below shows how each type of checkbox can be programmatically checked. I agree with @Tyrone Biggums in that I would just use a regular HTML checkbox rather than the Dojo checkbox, as the Dojo checkbox just adds an extra layer of complexity. <input type="checkbox" id="dojoCheckbox" checked="checked" />
<input type="checkbox" id="normalCheckbox" checked="checked" />
<button type="button" id="theButton">
Toggle the checkboxes
</button> require(["dijit/form/CheckBox", "dijit/registry"], function(CheckBox, registry) {
// Create the Dojo checkbox
var cb = new CheckBox({
checked: true
}, "dojoCheckbox");
// Get a reference to the button.
var b = document.getElementById("theButton");
// set the button click event
b.onclick = function() {
// Use the registry to get the checkbox dijit.
cb = registry.byId("dojoCheckbox");
// Set the dojo checkboxes "checked" property to be
// opposite what it currently is.
cb.set("checked", !cb.checked);
// Get the regular checkbox and check it.
var ncb = document.getElementById("normalCheckbox");
ncb.checked = !ncb.checked;
};
});
... View more
02-18-2016
09:29 AM
|
1
|
0
|
14761
|
|
POST
|
Aside from your typo, your code should work as long as the ID property is correct. // Either of these should work
document.getElementById("myCheckBox").checked = false;
document.getElementById("myCheckBox").removeAttribute("checked"); To make sure you have the ID correct, this code snippet will list all of the checked items and log their ids to the console. (If you're using IE 11 or below, you'll need to use a for loop instead of Array.from.) var checkedItems = document.querySelectorAll(":checked");
Array.from(checkedItems, function(cb){
console.debug(cb.id);
});
... View more
02-17-2016
11:27 AM
|
1
|
0
|
11434
|
|
POST
|
Rather than multiple queries, you can use a single query to the All Layers and Tables REST API endpoint.
... View more
02-08-2016
09:34 AM
|
1
|
2
|
2597
|
|
POST
|
I would like to see support for viewing data from SQL Server / SDE.
... View more
02-05-2016
09:38 AM
|
3
|
1
|
3155
|
|
POST
|
I think this is what you're looking for: Wrapping a Banner and Footer around the ArcGIS REST Services Directory page
... View more
01-25-2016
09:13 AM
|
2
|
1
|
934
|
|
POST
|
When using the FeatureTable with a FeatureLayer, the table does not update when the associated layer's definition query is updated. I have created a "Plunk" demonstrating this issue. http://plnkr.co/bJICUDTvKrvmn45xRoE7 How do I get the table to update when the associated layer is updated?
... View more
01-14-2016
04:08 PM
|
0
|
1
|
2634
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2025 08:56 AM | |
| 2 | 03-05-2024 05:10 PM | |
| 1 | 04-30-2013 08:23 AM | |
| 1 | 05-03-2022 09:45 AM | |
| 1 | 06-30-2015 10:55 AM |