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
|
486
|
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
|
459
|
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
|
865
|
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
|
495
|
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
|
327
|
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
|
369
|
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
|
903
|
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
|
883
|
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
|
883
|
POST
|
Awesome news, thanks! Now if it actually gets fixed.....
... View more
10-15-2012
07:03 AM
|
0
|
0
|
674
|
POST
|
Just to add to Pramod's code, you just need to add a dojo.connect() listener in your map's init() function similar to this: // Listener event to retrieve the recordID of the record in the datagrid that the user clicked on
dojo.connect(dijit.byId("grid"), 'onRowClick', function(e) {
var rowdata = grid.getItem(e.rowIndex);
var theId = rowdata.OBJECTID;
theFeatureLayer.clearSelection();
var query = new esri.tasks.Query();
query.objectIds = [theId];
theFeatureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,onRowClickHandler);
});
... View more
10-15-2012
07:00 AM
|
0
|
0
|
1682
|
POST
|
Being the weekend, I don't have my code in front of me but in one of the apps I've been developing, I've added a dojo.connect listener event tied to the row click event of a dataGrid I have in my app (it zooms to the extent of the feature listed in the dataGrid). I suppose you get get the FID of the feature, query it using queryTask, and then manually trigger the infoWindow, passing the feature returned by the queryTask to the infoWindow. I'm just thinking out loud, though. 😄
... View more
10-13-2012
03:21 PM
|
0
|
0
|
1682
|
POST
|
Well, shoot. I moved my return statement up in the function to just before the chart creation code is and the popup displays and displays correctly (the various DIVs created are present). I'll have to study this example since it most closely matches my current chart creating code. Thanks anyways, Steve
... View more
10-11-2012
10:12 AM
|
0
|
0
|
883
|
POST
|
Thanks Derek for the suggestions. I inserted them as you suggested: //cp1.containerNode.appendChild(cp2.domNode);
//cp1.containerNode.appendChild(cp3.domNode);
cp2.placeAt(cp1.domNode);
cp3.placeAt(cp1.domNode);
//var theChartDiv = dojo.place("<div></div>",cp3.containerNode);
//var theLegendDiv = dojo.place("<div></div>",cp3.containerNode);
var theChartDiv = dojo.place(dojo.create("div"),cp3.containerNode);
var theLegendDiv = dojo.place(dojo.create("div"),cp3.containerNode); But they made no difference. I stepped through the code in my function line by line and everything runs fine until it hits this line: pieChart.render(); at that point, it throws an ambiguous "object error" message with no line number. It's followed immediately by the other error I originally described. I should note that nothing appears in the popup except "undefined".
... View more
10-11-2012
09:29 AM
|
0
|
0
|
883
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 09-05-2024 08:12 AM | |
3 | 08-27-2024 02:01 PM | |
3 | 08-26-2024 08:12 AM | |
1 | 08-22-2024 09:38 AM |