|
POST
|
Right you are again, Derek. I've defaulted to using featureLayers due to my need for popup content but this particular layer I'm dealing with would be fine as a dynamicMapService. Thanks for setting me straight! Steve
... View more
11-01-2012
10:39 AM
|
0
|
0
|
647
|
|
POST
|
Like Rich states, maybe you can attempt to access the service before really needing it. Perhaps you can alter the code snippit found in the API documentation for ESRI.Request to verify that the service is up and running: esri.request
... View more
11-01-2012
09:55 AM
|
0
|
0
|
808
|
|
POST
|
Maybe try specifying the field Alias? Whenever I accessed the attributes of results, I used the format of features[0].attributes.<the attribute Field Name>". Note the use of a period instead of array brackets ( [ ] ). Like all things Javascript, the field name WILL be case sensitive. You could also try quoting the field name in your specification: features[0].attributes['<the attribute field name>']
... View more
11-01-2012
09:48 AM
|
0
|
0
|
618
|
|
POST
|
I have a polygon SDE dataset that I have added to my webmap as a feature layer. The layer is a dynamic map service and in the MXD/MSD, I have labeling turned on (standard- not Maplex). If I go to my REST Services directory and click on the "View in Javascript Viewer", the resulting window displays my features and the auto-labels just fine. In my webmap, however, the features will draw but no labels. What could possibly prevent the labels from appearing within my webmap? Steve
... View more
11-01-2012
09:40 AM
|
0
|
2
|
1109
|
|
POST
|
Maybe your service can use the symbology that Jim Mossman created years ago and is discussed in this old ArcUser magazine article?
... View more
10-31-2012
12:01 PM
|
0
|
0
|
1449
|
|
POST
|
Thanks, John! I was not aware of that option. Once I did set it, it rendered my features with full detail.
... View more
10-22-2012
06:53 AM
|
0
|
0
|
923
|
|
POST
|
Me again. 😄 I've been steadily knocking down many issues with my app and here's another one that I can't satisfactorily tackle using maxAllowableOffset. My app loads at the full extent of my county. If I select a project from a combo box, the map will then zoom into the extent of the project's feature. The attached screenshot shows you what is returned after the zoom in. The line basically straight lines from end to end instead of following the shape of the road (note the curves at the south end of the project). As the user zooms in and out of the map, the graphic representation of the features gets better and better. Since the feature layers I'm interested in only have ~30 records max, is there a way to specify that the features are ALWAYS drawn at the highest detail possible? I've tried adding a setMaxAllowable tied to the map's onZoomEnd event but it doesn't seem to correct the issue I see: var maxOffset = function maxOffset(map, pixelTolerance) { return Math.floor(map.extent.getWidth() / map.width) * pixelTolerance; }; . . . dojo.connect(map, 'onZoomEnd', function() { dojo.forEach(mapLayers, function(fl) { fl.setMaxAllowableOffset(maxOffset(map,1)); }); }); Steve [ATTACH=CONFIG]18593[/ATTACH]
... View more
10-19-2012
02:29 PM
|
0
|
2
|
1329
|
|
POST
|
I've been using v2.8 of the API up til now but I'm trying to update my references to ESRI's hosted version of the 3.2 API. When I did that, my page chokes with an error about jQuery (see attachment). I do load Google's jQuery in my app but that reference is located at the end of my HTML's BODY section. My app is located on our ArcGIS Server and not being run locally. [ATTACH=CONFIG]18581[/ATTACH]
... View more
10-19-2012
08:25 AM
|
0
|
1
|
846
|
|
POST
|
This sample basically does what you want using an identify Task. If you were looking to present a more elegant popup back to your user, you'd have to manually build the content in the infoWindow using the query task and a deferred list as (somewhat) shown in this sample. Once the deferred list's results are returned, you would manually step through the results and build up your popup's content however you want it to appear.
... View more
10-19-2012
06:58 AM
|
0
|
0
|
688
|
|
POST
|
Thanks, Derek. Your explanation makes perfect sense now. The left feature is very basic so it the POST url is under the 2k character threshhold. The right feature has about 35 vertices due to the curves. I looked at the POST info and the vertex coordinate pairs are almost 40 characters long so I'm already at about 700 characters with just the definition of the linear feature. I'm not currently specifying a proxy using esri.config.defaults.io.proxyUrl but I'll be working with my IT to finally get that set up. Thanks again! Steve
... View more
10-18-2012
02:57 PM
|
0
|
0
|
903
|
|
POST
|
This is just bizarre. In the attached screenshot, you'll see two vertical cyan polyline features belonging to the same feature layer (and served up as a dynamic map service). I have an infoWindow set up for the feature layer and when it opens, it takes the feature's geometry and then runs a queryTask against a polygon feature layer also on the map (thin blue outlines with no fill in the screenshot). Now, when I click on the left cyan feature, my queryTask runs just fine. When I click on the righthand cyan feature, it returns a message to the console window: "esri.config.defaults.io.proxyUrl is not set" and basically fails. Same dataset but different outcomes. Why is that?? Steve [ATTACH=CONFIG]18558[/ATTACH]
... View more
10-18-2012
01:03 PM
|
0
|
2
|
1437
|
|
POST
|
Thanks Derek. Darnnit- looks like I got my samples confused. It's actually this sample that I can't understand (but maybe it's the same answer). Sorry- and thanks! 😛
... View more
10-15-2012
07:44 AM
|
0
|
0
|
2326
|
|
POST
|
Hey Derek (or anyone else for that matter)- If I may ask a question about the ESRI sample that I linked in my last post in this thread- I can't seem to understand why in ESRI's example, a call to chart.render() isn't required. In EVERY javascript code example I've looked over, the chart creation code ends with a call to chart.render(). In my current situation, if I don't include that line, my code runs without error but the chart doesn't appear. The ESRI example doesn't have it and yet the chart does appear. Can you elaborate on that? THANKS! Steve
... View more
10-15-2012
07:09 AM
|
0
|
0
|
2326
|
|
POST
|
Awesome news, thanks! Now if it actually gets fixed.....
... View more
10-15-2012
07:03 AM
|
0
|
0
|
1832
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-12-2026 01:43 PM | |
| 1 | 03-12-2026 08:41 AM | |
| 2 | 03-10-2026 10:10 AM | |
| 1 | 02-18-2026 09:20 AM | |
| 3 | 01-22-2026 02:03 PM |