POST
|
I actually solved this - there are two arguments that I was not specifying that control for this. 1) Image Size (size) 2) DPI (dpi) So for the export, I just ramped these up and got the quality I wanted. This is what I added to my query string: "&size=3000,3000&dpi700"
... View more
07-10-2017
06:29 AM
|
1
|
0
|
399
|
POST
|
Hey, I am trying to write an application that takes the current extent of my map and exports the map service to KMZ. I have achieved this functionality however, the KMZ layer LOOKS AWFUL. Its effectively a useless blob of pixels that looks nothing like my map service. To achieve this, currently I am using: https://<MAP SERVICE ROOT>/MapServer/export?bbox<EXTENT>&f=kmz And just using JavaScript to open a window with this url and its downloads the kmz. The query string accepts a lot of other arguments that I have been manipulating but nothing is seeming to produce a viable result. Anyone have any experience with this or thoughts?
... View more
07-06-2017
07:41 AM
|
0
|
2
|
1177
|
POST
|
I am trying to write a program that will login a user programatically into a ArcGIS portal. Here is my scenario: User logs in to application A, user clicks a link to the ArcGIS portal - I do not want them to have to login to the portal when they click that link because that have already logged into application A. SO I would like: User logs in to application A, user clicks a button containing the portal link as an argument and redirects to application B. Application B logs the user into portal and redirects them with the link from application A - the user is redirected without being prompted to login. The portal is using portal tier authentication and I am using javascript but I could also use .NET/C# UPDATE: My current solution looks like this: var url = "https://PORTAL_DOMAIN/portal/sharing/rest/generateToken"; var redirect = "https://PORTAL_DOMAIN/portal/home/webmap/PLACE_I_WANT_TO_REDIRECT_TO"; var params = { 'username': "username", 'password': "password", 'client': "referer", 'referer': redirect, 'expiration': 60, 'f': 'json' }; $.post(url, params) .done(function (data) { var tokenHolder = JSON.parse(data); var token = tokenHolder.token; $('body').append(token); document.cookie("esri_auth", token); window.location = redirect; }); This code gets me a token from the rest service - I try to store it has a cookie but it doesn't persist. I have also tried using a C# web request and a credential cache to generate the credentials AND using the .NET proxy to try and pass through my portal URL and store the credentials server side but I didn't save the code I was using.
... View more
04-11-2017
09:12 AM
|
0
|
0
|
1410
|
POST
|
Hello, I am trying to write a programs that will login a user programatically into a ArcGIS portal. Here is my scenario: User logs in to application A, user clicks a link to the ArcGIS portal - I do not want them to have to login to the portal when they click that link because that have already logged into application A. SO I would like: User logs in to application A, user clicks a button containing the portal link as an argument and redirects to application B. Application B logs the user into portal and redirects them with the link from application A - the user is redirected without being prompted to login. The portal is using portal tier authentication and I am using javascript but I could also use .NET/C# Any help on this would be great! Thanks so much.
... View more
04-05-2017
12:11 PM
|
0
|
0
|
703
|
Title | Kudos | Posted |
---|---|---|
1 | 07-10-2017 06:29 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|