|
POST
|
for html you want http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayers/MapServer/legend/ for json (to incorporate in project) you want http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayers/MapServer/legend?f=pjson
... View more
10-03-2011
11:02 AM
|
0
|
0
|
1487
|
|
POST
|
IE is frustrating. We are currently using the 2.4 api with jquery 1.62 and jqueryui 1.8.14 I load it from a jsp page using <script type="text/javascript"> google.load("earth", "1.x"); google.load("jquery", "1.6.2"); google.load("jqueryui", "1.8.14"); </script> It works in ie7, ie8, and ie9. I only use ie7 developer tools, as my office will not allow me to upgrade, however we do test against ie8 and ie9 for compatibility and havent found many issues. Hope this helps, or at least alleviate's some of your concerns.
... View more
09-30-2011
10:54 AM
|
0
|
0
|
513
|
|
POST
|
Thanks jeff.pace for the referral, I will look closely into this. If you look at the feature layer samples it should get you started. For example http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/time/time_snapshot.html Shows how to dynamically change what data is displayed based on a time variable.
... View more
09-19-2011
09:13 AM
|
0
|
0
|
759
|
|
POST
|
Hello all, I have a client who is in need of mimicking their ArcGIS desktop version via a webapp. Currently we have a database consisting of various entries dealing with GPS point placement, layering, etc and would like to somehow bring this functionality to the web, even minimally. Essentially, if I select parameters the run against the database such as temperature, location, time intervals, etc. - the webapp app queries the database, pulling GPS data, and then displaying points and so forth on the map on the page after the user hits the "Update Map" button. I have yet to find any good examples of something similar of this being done - i.e. HTML querying and map updating in real time instead of just pulling/pre-loading from some KML/CSV on a distant server. Thank you so much for your time. Any help will be sincerely appreciated! -Scott You want feature Layers. You would set up the entire dataset on the server, and then the HTML/javascript can dynamically apply filters or queries.
... View more
09-19-2011
08:19 AM
|
0
|
0
|
759
|
|
POST
|
Does your transparency need to be adjustable? Can't you just set the transparency in the mxd for the FCs that need it?
... View more
09-19-2011
05:35 AM
|
0
|
0
|
1152
|
|
POST
|
Hi, Is there a possibility now to create an application for offline consumption of data? I want to create an application of iOS and Android and planning to do it in HTML and Javascript for cross platform accessibility. Can I load the mxd file directly into the page with javascript? Unfortunately no, you need a running ArcGIS Server.
... View more
09-19-2011
05:33 AM
|
0
|
0
|
371
|
|
POST
|
The LODs are determine by the first tiled service loaded. If you are the world street map first, that is why you can not zoom past 1128. Try loading your feature layer first, then loading the world street map as a basemap.
... View more
09-19-2011
05:33 AM
|
0
|
0
|
529
|
|
POST
|
without more of your code it is hard to tell, but the upgrade from dojo 1.5 to 1.6.1 included in the later api version did break some items related to bordercontainers and contentpanes
... View more
09-14-2011
08:12 AM
|
0
|
0
|
384
|
|
POST
|
Daniel I have been stuck on this all afternoon. My day and month was always one below what it should have been. Adding plus one as you did solves the problem, thanks. My question is: Why do we have to do this? Is there a bug in the data conversion or am I doing it wrong? _covDate = new Date(myAttributes.RecordDate); <s:Label text=" {_covDate.getMonth() + '/' + _covDate.getDate() + '/' + _covDate.getFullYear() }"/> I agree we shouldnt have to do this (we shouldnt have to manually decode domain values either, but we do) I get the layer description on my queries from the rest service, then check the field type if(ldf.type=="esriFieldTypeDate"){
field_val= dojo.date.locale.format(new Date(field_val), {datePattern: "MM/dd/yyyy"});
}
... View more
09-14-2011
06:20 AM
|
0
|
0
|
6929
|
|
POST
|
Your problem is the esri.request returns A service (not services), so your for Loop has nothing to loop over (its a json response, not an array). try function getLayerDetails(response,args){ alert(response.serviceDescription); } or just alert your response to see what it contains.
... View more
09-12-2011
08:14 AM
|
0
|
0
|
2047
|
|
POST
|
Get has a 2000 character limit, which you are exceeding use dojo.xhrPost or esri.request with the option usePost: True to force it to use Post
... View more
09-12-2011
05:49 AM
|
0
|
0
|
470
|
|
POST
|
That got me on the right track, I also needed to change the property Graphic to feature. However, when I get my result it always says undefined. Is there away to see the raw json returned besides fiddler? I am using Visual Studio. I dont use VS, i just use Mozilla and you can alert toSource() however, An identify should return a FeatureSet. so you can do //featureSet.features returns a Graphics Array dojo.forEach(featureSet.features, dojo.hitch(this, function(feature){ //each feature is a graphic //feature.attributes is the json object alert(feature.attributes["Field_NAME"]); }));
... View more
09-09-2011
11:19 AM
|
0
|
0
|
701
|
|
POST
|
I am doing an Identify task and the results come back fine. I want to get a single value out of the returned results. How would I do that? var segResult = idResult.Graphic; alert(segResult.attributes[0]); attributes are a json object. so if you know the field name, you can do alert(segResult.attributes["FIELD_NAME"]);
... View more
09-09-2011
09:19 AM
|
0
|
0
|
701
|