|
POST
|
Thanks for the tips. I guess I'll just have to experiment and see the results, as everyone seems to have different opinions on whether it'll cause a performance problem, but no hard evidence either way! A suggestion from an ESRI Australia expert was to build the relate at the REST API level - http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/queryrelatedrecords.html I'll let you know how it goes.
... View more
06-01-2011
04:04 PM
|
0
|
0
|
588
|
|
POST
|
FYI, we've just published a new version of our site, which now uses setMaxAllowableOffset to change the layer simplification on-the-fly. See http://atlas.nsw.gov.au/public/nsw/home/map/population.html for an example - there shouldn't be any visible gaps between the polygons, but they are simplified to reduce the download size.
... View more
05-31-2011
10:12 PM
|
0
|
0
|
1142
|
|
POST
|
Hi all, We've updated our site to use the clustering sample - see http://atlas.nsw.gov.au/public/nsw/home/map/national-parks.html I had to make some tweaks to the sample clustering script, to avoid the infoWindow flicking on/off on mouse hover, but otherwise I'm pretty happy with the way it works. Let me know if you have any questions. Cheers, Steve
... View more
05-31-2011
08:13 PM
|
0
|
0
|
1702
|
|
POST
|
I just learnt this incredibly useful trick: if you rename an *.MSD file to be *.zip, you can open it up in WinZip and see the component *.XML files. This allowed me to debug a complicated problem involving incorrect data paths - hard to do in the dark, but simple once I knew where to look. ESRI - could we have an official viewer which allows us to do this legitimately?
... View more
05-31-2011
04:33 PM
|
7
|
3
|
9805
|
|
POST
|
I'm seeking some advice on best practices for handling datasets with hundreds of attributes. (I made a typo in the subject of this thread - the attributes would be part of the featureclass, not joined to it.) I'm building some polygon featureclasses from raw census tables, which contain hundreds of fields. I'd like to leave all of the attributes on the featureclasses (rather than stripping off the ones I don't currently need), so I can be flexible about which attributes to show at a later date. Does anyone have any advice on how this will affect performance? 1) is it a bad idea to have a file geodatabase featureclass with hundreds of attributes? 2) is it a bad idea to create a map service from this featureclass, containing hundreds of attributes? 3) is there a performance implication if I build a featureLayer in the JS API, and only specify the attributes I currently need? eg, the map service might contain 500 attributes, but I define my feature layer using featureLayer.fields = [x, y, z] Thanks for any advice, and please let me know if you need any further details. Steve
... View more
05-30-2011
03:56 PM
|
0
|
2
|
957
|
|
POST
|
Hi Lawrence, You could try inserting your layer's URL into the Dynamic map sample at http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_dynamic.html Does anything display? If your server is public-facing, can you tell us the URL so we can test it? Steve
... View more
05-29-2011
07:24 PM
|
0
|
0
|
952
|
|
POST
|
While it's not an urgent matter it sure would be nice to have these before July 6. For me, testing is a semi-urgent matter as there's a lag of about a week from when I make changes to my code, and when it gets deployed on our public-facing servers. Other people working in large organisations may have the same restrictions. I need to ensure that it won't suddenly break on July 6, so would like to test it ASAP. Thanks, Steve
... View more
05-29-2011
07:22 PM
|
0
|
0
|
2185
|
|
POST
|
My brilliant colleague Danny came up with the resolution:
var infoTemplate = new esri.InfoTemplate();
infoTemplate.setTitle("title");
infoTemplate.x = "abc";
infoTemplate.setContent(buildChart);
function buildChart(graphic) {
var x = this.x;
This allows you to access the value "abc" from within the buildChart function. Genius.
... View more
05-25-2011
09:47 PM
|
0
|
0
|
1220
|
|
POST
|
Off-topic - there are some sample questions from the Esri Developer Certification exam posted at http://downloads2.esri.com/campus/downloads/certification/samplequestions/EWDA10_Sample_Questions.pdf The reason I hate multiple choice questions is that you can't reason with the computer which marks them. I'd dispute the 1st and 3rd questions: A developer is creating a Web application that allows the user to type in their address and locate it on the map. Which service does the developer need to publish? The answer given is a geocoding service - but the developer doesn't "need to publish a geocoding service". - The developer could use a published geocoding service provided by someone else (eg Bing). - The developer could publish a feature service, and use a query. This is what we used at http://atlas.nsw.gov.au/public/nsw/home/map/base.html in the Find Location search (top right) since it allowed us to use type-ahead, which isn't available using a geocoding service How should a developer show more information when a user hovers over a client-side graphic? Call me a pedant, but there isn't a single correct way to do this, and the correct question is "how could..." OK rant over, back to work now.
... View more
05-25-2011
08:30 PM
|
0
|
2
|
1643
|
|
POST
|
Actually stack overflow has a good thread which should help me out here: http://stackoverflow.com/questions/111102/how-do-javascript-closures-work
... View more
05-25-2011
07:53 PM
|
0
|
0
|
1220
|
|
POST
|
using a closure for vars you want to access inside your function. Hi Derek, Can you elaborate on that suggestion? Thanks, Steve
... View more
05-25-2011
07:46 PM
|
0
|
0
|
1220
|
|
POST
|
The sample at http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_infowindowdeferred.html shows how to run a function to format the contents of an infoWindow. It says "a function (getTextContent) is defined that will execute when a [feature] is clicked" and "In the getTextContent function we have access to the clicked graphic". The content of the infoWindow is set with: template.setContent(getTextContent); and the function references the graphic object using: function getTextContent(graphic) { Is it possible to pass other variables into this function, so that they could be used within the function? Thanks, Steve
... View more
05-25-2011
03:46 PM
|
0
|
5
|
1770
|
|
IDEA
|
In Graduated Color or Graduated Symbol symbology, ArcMap allows you to set the Label to read whatever you want, rather than exactly what is shown in the Values column. The problem is that the slightest change to ANY value in the Range column completely obliterates all of the other labels, potentially wasting a huge amount of time. Eg, if I change the first Range value to be 250001 this is the result: The logic should be that the Label is set to the Range when the Classification is first set (including on layer creation) but thereafter, any changes to the Label field are made by the user only, not automatically.
... View more
05-23-2011
05:10 PM
|
152
|
25
|
11307
|
|
POST
|
If you like the idea of out-of-the-box point clustering in the JavaScript API, please vote at http://ideas.arcgis.com/ideaView?id=08730000000bmm4 This would be preferable to using an unsupported clustering sample from the web. Thanks, Steve
... View more
05-18-2011
04:21 PM
|
0
|
1
|
884
|
|
POST
|
Is there a way to capture when the setVisibleLayers() has completed? It would be nice to know when it's completed so I can have a "loading" message. You could also listen for the map.onUpdateStart and map.OnUpdateEnd events, rather than listening to an individual layer: onUpdateStart() Fires when one or more layers being updating their content. This event is often used in combination with onUpdateEnd to display a "Map is busy" or "Loading? " message as visual feedback to the end-user. (As of v2.2) See the sample at http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_showloading.html
... View more
05-17-2011
07:56 PM
|
0
|
0
|
1118
|
| 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
|