|
POST
|
hi guys, in addition to the features themselves, the FeatureSet returned by the query also returns a 'fields' property. you can find the array of outFields you're looking for there too. [ATTACH=CONFIG]33152[/ATTACH]
... View more
04-16-2014
02:35 PM
|
1
|
0
|
1382
|
|
POST
|
matt, no need to apologize. i understand where you're coming from. by 'consistent use of protocol', i was referring to hardcoding or using protocol relative urls to ensure that only https resources are requested from https apps. this isn't the same as attempting to intercept all requests to specific http resources and pass them through an https proxy instead. the sticking point here is that you had an expectation that using .addProxyRule() would guarantee each and every request made to a particular url would use a proxy and it just doesn't work that way currently.
... View more
04-14-2014
01:58 PM
|
0
|
0
|
2164
|
|
POST
|
matt, thanks for the clarification. i definitely appreciate the difficulty given that you don't administer all the services leveraged in your application, but the recommendation when designing SSL sites is definitely consistent use of the protocol (to avoid the exact problem you are running into).
... View more
04-11-2014
07:57 AM
|
0
|
0
|
2164
|
|
POST
|
hi matt, the request you're referring to is made automatically by the API to gauge whether or not the remote server supports CORS (and whether subsequent POSTs across domains would require the use of a proxy). i'm not sure if in designing the API anyone intended that it should be possible to ensure that you could guarantee that the second leg of all traffic to a particular server could be encrypted to give end users the perception that encryption was in place end to end. If SSL is a concern to end users and you intend on hosting an application over HTTPS, its probably worth configuring your servers to support it as well.
... View more
04-11-2014
07:26 AM
|
0
|
0
|
2164
|
|
POST
|
my pleasure Mike. please consider marking this thread as 'answered'.
... View more
04-09-2014
08:01 AM
|
0
|
0
|
724
|
|
POST
|
the crux of this issue is that setting the property on your ProjectParms object doesn't have the effect it should. because of this we need to be listening for the AJAX request all the time and modify it manually.
//we call this method once when the application loads so that it will execute afterwards when AJAX requests are fired.
esriRequest.setRequestPreCallback(addTransformationForward);
...
var params = new ProjectParameters();
params.geometries = [point];
...
//setting this parameter is not working (because of NIM090102)
params.transformationForward = false;
gsvc.project(params, function(projectedPoints) {
...
});
function addTransformationForward(ioArgs) {
//lets add the parameter when we catch an AJAX request aimed at our geometry service
if (ioArgs.url == "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project")
//add the request parameter manually
ioArgs.content = ioArgs.content || {};
ioArgs.content.transformForward = false;
// don't forget to return ioArgs.
return ioArgs;
}
heres a working fiddle http://jsfiddle.net/jagravois/9WXDx/
... View more
04-08-2014
10:52 AM
|
1
|
1
|
3243
|
|
POST
|
setRequestPreCallback() is a generic method which gives you an opportunity to manipulate parameters in any AJAX request before it is sent. if you'd like to take a stab at writing up a simple sample and incorporating the technique, i would happy to provide additional assistance if you get stuck.
... View more
04-08-2014
08:58 AM
|
0
|
0
|
3243
|
|
POST
|
unfortunately thats a bug: [NIM090102: When projecting using geometry service in a JavaScript application, the transformationForward parameter is not passed to the request parameters even it is defined in the code.] you might want to try using something like esriRequest.setRequestPreCallback() until the issue is resolved.
... View more
04-08-2014
08:45 AM
|
0
|
0
|
3243
|
|
POST
|
your methodology seems correct to me and i can see by adding and removing the datum transformation in the request below that the output x and y are affected by about 100 units. http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?inSR=4326&outSR=27700&geometries=1.8300%2C60.8900&transformation=1314&transformForward=false&f=html are you sure your own geometry service supports adding a transformation? this capability wasn't added until 10.1 http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Project/02r3000000pv000000/ HowTo: Select the correct geographic (datum) transformation when projecting between datums http://support.esri.com/fr/knowledgebase/techarticles/detail/21327
... View more
04-08-2014
07:56 AM
|
0
|
0
|
3243
|
|
POST
|
hi adrian, did you download the code from our live repo or the 0.9 'official' released version? if you downloaded the most up to date code, its possible the problem you are seeing is caused by a bug i introduced when modifying some internal logic when evaluating matches. the live code today is a case sensitive match, so 'arcgis' in the proxy.config is not considered valid when the request is aimed at 'ArcGIS'. we'll be fixing this very shortly. https://github.com/Esri/resource-proxy/issues/77
... View more
04-04-2014
02:00 PM
|
0
|
0
|
2852
|
|
POST
|
Dorothy, i dont have a better guess than it having something to do with your credentials, because when i sign in a popup displays showing the elevation. what happens when you sign in to arcgis.com? are you sure you have an organizational subscription? either way, im glad to hear you have some working code that does what you need.
... View more
04-03-2014
07:47 AM
|
0
|
0
|
2016
|
|
POST
|
hi Dorothy, which example are you referring to? your own code or the sample I provided in the linked forum thread? if you're talking about http://jsfiddle.net/jagravois/PFART/, what exactly are you seeing?
... View more
04-02-2014
10:45 AM
|
0
|
0
|
2016
|
|
POST
|
Brandon, i'm not sure i understand what you're asking. are you attempting to save new features to your redline feature layer published using ArcGIS Server? if so, at some point in your code you will need to make a call to RedlinePointLayer.applyEdits() instead of calling RedlinePointLayer.add().
... View more
03-31-2014
08:35 AM
|
0
|
0
|
1543
|
|
POST
|
i had a hunch this has something to do with a failure normalizing geometries and sure enough saw errors when panning ken's sample application across the dateline after adding the code below...
var gs = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
...
map.on("extent-change", function () {
normalizeUtils.normalizeCentralMeridian([map.extent], gs, normalizeCallback);
});
function normalizeCallback(result) {
map.extent = result[0];
}
>>>Uncaught TypeError: Object [object Object] has no method 'getWidth'
ill dig in deeper and let you know what i find.
... View more
03-21-2014
09:24 AM
|
0
|
0
|
1073
|
|
POST
|
awesome Christian. if you've got everything you need, please consider marking this thread as 'answered'
... View more
03-20-2014
09:44 AM
|
0
|
0
|
1342
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|