POST
|
Hello, I have a map service with many layers including 2 raster layers. I've noticed that REST requests return no Display Field for the raster layers. Is this working as expected? Is the display field not defined for raster layers? I apologize if this is a stupid question. I just want to be able to show the display field of layers to users of my javascript app regardless of whether the layer contains vector or raster data.
... View more
10-03-2011
12:18 PM
|
0
|
1
|
1964
|
POST
|
Hello again, I haven't heard from anybody what the "correct" behavior of the draw extent tool is. I would like to start using some functionality from the latest versions of the Javascript API, but I am still stuck at version 2.1 because I can't get the draw extent tool in later versions to work like I want it to. Is there another way to get the draw toolbar to allow point or extent in the newer versions? Thanks for your help!
... View more
09-28-2011
12:06 PM
|
0
|
0
|
1004
|
POST
|
still wouldn't encourage you to kick off dozens of queries...seems like a reliable way to slow down any app. You said it brother! Have you any idea of how to return lots and lots of records reliably with ArcGIS Server 9.3.1?
... View more
08-24-2011
02:38 PM
|
0
|
0
|
859
|
POST
|
Thanks stevel, I implemented your suggestion of waiting for one to complete before sending the next. This actually works! But the time it takes is prohibitive. I can't figure out how using the returned Deferred would help me distinguish one from another. A DeferredList seems like a good way to go, but since it waits until all Deferreds have fired, then fires itself, it still doesn't help me to tell which request corresponds to which deferred. I think since the data returned doesn't indicate anything about the request, I'm outta luck. Thanks for your help!
... View more
08-24-2011
01:26 PM
|
0
|
0
|
859
|
POST
|
Thanks stevel, I think that would be a great way to go. I don't think I was clear enough on what my problem actually was. I can't return 10s of thousands or 100s of thousands of records from the server, so I don't have all of the records in order to cluster them. I will definitely look into clustering once I figure out how to get all the points. Thanks again!
... View more
08-24-2011
01:17 PM
|
0
|
0
|
704
|
POST
|
Hi all! I have been trying to send dozens of queries to retrieve data points with different parameters. I can't figure out how to tell which response came from which query. The exact number of queries will be unknown, but it will most likely be 100+. I can't see creating over 100 named functions to callback, and I can't figure out how to get external information into a shared callback or anonymous inline function. As I loop through the array containing the data that will make up the queries, I have an index. If I use the index value within an inline function, by the time the callback function is called, the index is always max.
for(var i = 0; i < queryArray.length; i++) {
queryTask.execute(query, function(featureSet) {
...
alert("Query Task #" + i);
});
} If queryArray.length = 25, I get 25 alert windows with "Query Task #24". Does anybody know how to know which response corresponds to which request? Thanks!
... View more
08-16-2011
12:30 PM
|
0
|
7
|
3084
|
POST
|
Thanks Ben, I am really trying to avoid having to make separate data for each species. This would be thousands of separate tables or shapefiles. I've had some luck with actually sending the 150 or so queries and getting the results. Since they're asynchronous, the points just keep appearing as they become available. I don't think this is the best way to do this, but it does return most of the points. If I am going to continue to do this, I need to know how to know which async response matches which request. Is there anyway to do that? Do you have any other ideas of how to show the density of points without having to pre-create hundreds of density maps?
... View more
08-16-2011
12:09 PM
|
0
|
0
|
704
|
POST
|
Hi all! I have over a million species occurrence points, and users are supposed to be able to select points by species. Problem is our most common species show well over 100k points. In the past I've created an arbitrary grid where each cell has the total number of points within that cell. Then I just show the grid cells that contain at least 1 point. Queries weren't allowed until the user zoomed to a specific level, where the individual points were limited to a few thousand. This time I can't limit queries to certain zoom level, nor can I afford to use thousands of separate grids with the point counts for each individual species. I would love to use some form of heat map (my grids were a rudimentary sort of heat map), or something else to summarize the points when zoomed way out. I was thinking of using the grid to query all the matching features in each cell, but I didn't know if I could send 150 or so queries at the same time. Has anyone done something like this before? I could use any guidance you can provide. I'm using ArcGIS Server 9.3. Thanks for your help!
... View more
08-15-2011
04:56 PM
|
0
|
4
|
969
|
POST
|
Thanks for your reply! I didn't realize it was a version thing. I guess I've never tried before. Does anybody know what the correct behavior is? If this is just a bug in v2.3, then I will just use v2.2 until a fix is available. If the behavior I want is actually just a bug in v2.2, I might try the workaround. I look forward to coming to a solution on this. Thanks for your help!
... View more
06-14-2011
11:57 AM
|
0
|
0
|
1004
|
POST
|
Hi all, I'm trying to figure out how to use the Draw toolbar to allow a user to draw either a point or an extent. I'm trying to use this for the identify tool. I don't want the user to have to select either point or extent, I want the application to be intelligent enough to determine if the user has clicked a single point, or clicked and dragged the mouse to enclose an extent. The problem I'm running into is if the Draw toolbar is in EXTENT mode, a single click starts drawing, and another single click finishes the drawing. I want a single click to represent a point. Is this possible? Also, am I doing this the wrong way? Is there a better way for the user to be able to identify from either a point or an extent? This code seems like it would work, but since the Draw toolbar doesn't fire the "onDrawEnd" event on a single click if drawing an EXTENT, it doesn't.
var drawToolbar = new esri.toolbars.Draw(map);
drawToolbar.activate(esri.toolbars.Draw.EXTENT);
dojo.connect(drawToolbar, "onDrawEnd", function (geom) {
if(geom.xmin == geom.xmax && geom.ymin == geom.ymax) {
geom = new esri.geometry.Point(geom.xmin, geom.ymin, geom.spatialReference);
}
// execute an identifyTask using geom
});
Thanks for your help.
... View more
06-09-2011
02:13 PM
|
0
|
6
|
1449
|
POST
|
Aloha, I've created a sample map service out of US state and county boundaries. http://166.122.241.243/ArcGIS/rest/services/National/MapServer I'm trying to display it on a flex map using either GraphicLayer or FeatureLayer. I can't get the FeatureLayer to show up at all, and if I use a GraphicLayer, I can query a single state, sometimes, but usually, the query times out. I thought this might have to do with the spatial reference of my map or base layer (an ArcGISTiledMapServerLayer) not matching, but I've since changed my map service to match the tiled layer, and I don't see any difference. I have another FeatureLayer from an ArcGIS server, and it works fine--and it uses a different spatial reference from either. Can someone here point me in the right direction? Any hints will be helpful! Edit: I've since discovered that the FeatureLayer does "load" and the LayerDetails are populated, but no graphics are returned. I'm still stumped. Mahalo!
... View more
05-04-2011
03:53 PM
|
0
|
1
|
739
|
POST
|
Thanks for your response, dpaddock, You're absolutely right. It is linear. I expected that the coordinates would be the same for the same point on Earth, no matter if the view was scrolled, (the Earth was rotated 360 degrees), but now I see that the x-coordinates reflect how many times you've "rotated" the globe. It was a silly mistake on my part, but I sure was confused, thus this post. Thanks for your help!
... View more
05-02-2011
11:28 AM
|
0
|
0
|
411
|
POST
|
Thanks rscheitlin, I find that the level does work. I also thought that my extent was completely being ignored, but I found that it was not being ignored, but because I was trying to take advantage of the wrapAround180 feature in the new API to show the entire extent of the US, I was using an extent that didn't make sense. I was using the expanded view of the world, zooming in and reading the map.extent to get the extent I wanted to use. It didn't even occur to me that the extent I was using was gibberish. There seems to be a bug with the wrap feature that keeps subtracting (or adding) as the map is scrolled past the dateline. Thanks for your help. Everything is working okay now. I think some work needs to be done on the wrap feature before it's ready for me to use. Thanks again!
... View more
04-28-2011
04:39 PM
|
0
|
0
|
411
|
POST
|
I've created a map with an ArcGISTiledMapServiceLayer. Instead of using the explicit extent for the map, it appears to be using the extent from the ArcGISTiledMapServiceLayer. I need to know how to explicitly set the extent that the map uses when it is first displayed. This is the code I'm using with the service url hidden.
<esri:Map id="map">
<esri:extent>
<esri:Extent xmin="-60884403.02"
ymin="657021.19"
xmax="45425778.42"
ymax="12202069.94"
spatialReference="{new SpatialReference(102113)}"/>
</esri:extent>
<esri:ArcGISTiledMapServiceLayer
url="http://DOMAIN/ArcGIS/rest/services/SERVICE/MapServer" />
</esri:Map> Any help will be greatly appreciated.
... View more
04-27-2011
03:44 PM
|
0
|
4
|
656
|
Title | Kudos | Posted |
---|---|---|
1 | 10-27-2016 01:41 AM | |
1 | 05-12-2015 11:58 AM | |
1 | 08-22-2017 11:48 AM | |
1 | 11-21-2016 10:43 AM | |
1 | 10-25-2016 11:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|