|
POST
|
it is not a bug with the legend widget, it has to do with how the rest service is defined from your layer symbology setup in ArcMap Richard, I think you're right. Perhaps we should be reporting this to the core ArcGIS Server or REST team, since it's nothing to do with the JS API. I'm not on maintenance so I can't log a bug report - can someone else do it? Cheers, Steve
... View more
11-23-2011
12:33 PM
|
0
|
0
|
4382
|
|
POST
|
Hi Matt, Check out the Query Task section of the samples to get an idea of where you could start. The Query Results in Chart sample shows how to run a query when the user clicks on the map. This section shows how to handle the results of the query:
for (var i=0; i<features.length; i++) {
feature = features;
attributes = feature.attributes;
white = parseInt(attributes.WHITE);
In your case, once you have the variable ("white") you could pass it to the second program. Hope this helps, Steve
... View more
11-08-2011
07:40 PM
|
0
|
0
|
872
|
|
POST
|
Is there a way to use layer.hide(); for multiple layers in a single function?... if only atmLayer is on, it won't shut off, with the error that bikeLayer is not defined Hi Ben, You could define an array of layers, and add each layer to the array when it is defined. Then iterate through the array and switch off each layer. Something like this:
//define the array of layers - add each layer as it's created
var mapLayers = [];
mapLayers.add(bikeLayer);
mapLayers.add(atmLayer); //etc
//To switch off the layers
for (var i = 0; i < mapLayers.length - 1; i++) {
mapLayers.hide()
}
Hope this helps, Steve
... View more
10-25-2011
03:52 PM
|
0
|
0
|
603
|
|
POST
|
add the tables the relationships are based on to your map Thanks Ray, that was the solution. Hope you're well!
... View more
10-11-2011
04:52 PM
|
1
|
0
|
2851
|
|
POST
|
Hi Kelly, On a slightly related front, I'd like the ability to break out of executeForCount once a specified number has been reached. I want to know if there are more than X features, rather than the total number of features, in the layer. For example, once I know that there are more than 500 features, don't keep counting all 10,000,000 features. At the moment the only way to test this is to count all features, which can take a long time with complex layers. Cheers, Steve
... View more
10-09-2011
07:43 PM
|
0
|
0
|
628
|
|
POST
|
Hi Domenico, I'm using ArcGIS Server 10. I've decided to try denormalizing the database to remove the relationships (should be faster) so I'm not so worried about this now. Thanks, Steve
... View more
10-04-2011
08:46 PM
|
0
|
0
|
2851
|
|
POST
|
Hi there, I'm not an expert on this, but I've had success using the Bing maps samples: - Add Bing Maps Layer - Basemap Gallery Button I didn't get Google Maps to work as a backdrop using this method, yet. Steve
... View more
09-28-2011
03:02 PM
|
0
|
0
|
2980
|
|
POST
|
I have an ArcSDE geodatabase which contains multiple relationship classes. If I add this layer to ArcMap, the relationship is automatically detected (eg, the Identify dialog allows me to view the related features). However, if I publish this map document to ArcGIS Server, the REST endpoints for the layer don't show the relationship classes. This sample REST directory does show the related data. How has this been set up? Thanks, Steve
... View more
09-26-2011
10:36 PM
|
1
|
6
|
9146
|
|
POST
|
The sample here shows how to find related records when working with a Feature layer, using queryRelatedFeatures. Is it possible to find related records when using a Dynamic layer? Ideally I'd want to hook this up to an Identify task, or a QueryTask, both of which would run when clicking on the map. Thanks, Steve
... View more
09-26-2011
08:57 PM
|
0
|
4
|
1154
|
|
POST
|
Sven, You can do this by assigning the dojo.connect call to a variable, which allows you to switch it off later.
//to switch it on
var clickListener = dojo.connect(map,"onClick",executeIdentifyTask);
// to switch it off
dojo.disconnect(clickListener);
Steve
... View more
09-25-2011
07:49 PM
|
0
|
0
|
817
|
|
POST
|
man, you are thorough. Thanks for following up on this (I'd totally forgotten)
... View more
09-25-2011
06:22 PM
|
0
|
0
|
1552
|
|
POST
|
if floor = "1" then [run function that shows floor one], else if floor = "2" [run function that shows floor two] and so on Ben, Just a small comment. Rather than having a separate function for each floor, a potentially more robust and scalable method would be:
function showFloor(floor_number) {
//run code to show floor = floor_number
}
Cheers, Steve
... View more
09-20-2011
04:01 PM
|
0
|
0
|
712
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|