Select to view content in your preferred language

Add a parameter to outgoing request (SL 1.2 API, I know, I know)

534
1
02-06-2014 01:35 PM
ReneRubalcava
Frequent Contributor II
I have to fix an old ArcGIS LS 1.2 API app. I can't upgrade the API, it just needs to be working again soon. It's slated for a rewrite, but now right now.

I need to pass the outSpatialReference parameter to the LocatorTask. The 1.2 API does not have the OutSpatialReference option in AddressToLocationsParameters. I just need to figure out a way to intercept the request before it goes out and append that one little string to it.

I can use the GeometryService to project my data, but then I lose all my attributes and I have no idea how to sync the results from a ProjectAsync to the Graphics I sent it. If I could do this, fine, I'll do that, but any tips how?

Any help would be appreciated here. I know this is an old version, but thanks.
0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor II
Nevermind, I just published a new locator with less coverage. It works as a band-aid until they push a rewrite through.
0 Kudos