POST
|
HI Can anybody guide me how to accomplish this in ESRI leaflet: I want to select one ore more polygons in one layer, and use this selection to make a selection in a point layer? Thanks Jacob
... View more
04-17-2015
12:42 AM
|
0
|
0
|
3946
|
POST
|
Just to show it works when the basic authentication header is added
... View more
02-25-2015
12:33 AM
|
0
|
0
|
624
|
POST
|
Hi Sachin Yes the code looks like this L.esri.get("http://myserver/webadapter/tokens/generateToken", {
username: "username",
password: "password,
f:"json",
expiration: 86400,
client: "requestip",
referer: window.location.origin
}, function (error, response) {
token = response.token;
if (token) {
LoadAgsLayers();
} else {
console.log("Ingen token blev hentet");
}
});
this code returns a token Then i try to get the layer with var lukkeKort = L.esri.featureLayer("http://myserver/webadapter/rest/services/Varme/varme1/MapServer/27",
{
token: token,
useCors: true
});
lukkeKort.addTo(map); This code passes a link with the token, but gets "access denied," We created another webadaptor using basic authentication, now i need to add authentication informations in the header before the request is made, but i can't figure out how to setRequestHeader on the request. When i copy paste the link to a different browser and login, then the service returns features.
... View more
02-24-2015
11:49 PM
|
0
|
1
|
624
|
POST
|
I figured out what is wrong but not how to fix it When I am calling the featurelayer even do I have a token present in the request, the endpoint still requires windows authentication. (when copying the link to a different browser then I’m prompted with a login dialog ) So how can I via ESRI-leaflet make a windows authentication in my calls to the endpoint?
... View more
02-24-2015
03:13 AM
|
0
|
3
|
624
|
POST
|
Hi
Im using leaflet and Esri leaflet plugin, our ArcGIS server uses Windows Authentication.
I my javascript i get a token from the server and passes the token to the featureLayer request, my problem is:
the response from the server is Access denied but when i copy/paste the request URL in a different browser window the server returns features.
What can be wrong?
Copy paste URL to another browser window:
Thanks
Jacob
... View more
02-24-2015
12:36 AM
|
0
|
4
|
4749
|
POST
|
I ended up doing a reinstall of the server and now everything works fine
... View more
11-02-2012
04:14 AM
|
0
|
0
|
366
|
POST
|
Hi I have just installed AGS 10.1 and set the security like so: Configuration Settings User Store: Windows Domain Role Store: ArcGIS Server Built-in Authentication Tier Web Authentication Mode: Web I have published 2 services and when i try to access the FeatureService everything works just fine, but when i try to access the Mapserver i get an error:500 [ATTACH=CONFIG]18877[/ATTACH] What can be wrong? Thanks Jacob
... View more
10-31-2012
04:07 AM
|
0
|
3
|
2183
|
POST
|
Hi Shuping Li Thanks for your reply. I will try to explain a little better. I�??m making a Task (for ArcGIS Server 10) in C# using Visual Studio 2010, When the user clicks a button on this task, a polygon (fixed size based on current map scale, and some settings in the task) should show up at the curser position when the curser is in the Map control and follow the curser until the user clicks the map then the polygon is placed in the map. I�??m making a JavaScript using the Web ADF JavaScript library. The js file is embedded as resource and added the button.attributes( onclick ) . I�??m finding it hard writing the code, when I�??m used to Intellisence when coding C# and there is nothing when working with js files in Visual studio, and I�??m new to coding JavaScripts.
... View more
09-14-2011
10:33 PM
|
0
|
0
|
748
|
POST
|
Hi I new to JavaScripts (have experience with C# And ArcObjects) I'm making a task at want to place a Rectangle / Polygon in the map when the user clicks a button(executing the JavaScript), then the rectangle / polygon should show up at the curser and be placed in the map where the user clicks. (i want to use it to specify print extend) I've searched for some samples but i i'm having trouble finding them, can anybody help? I would like to calculate the size of the rectangle and pass the value to the JavaScript. any idea?
... View more
09-14-2011
04:43 AM
|
0
|
5
|
2993
|
POST
|
Ok, this is strange, when Fiddler2 is running then the map loads just fine everything shows up i can zoom in and out, but the moment i close fiddler the map won't load anymore? - Still no exceptions
... View more
02-15-2011
08:58 PM
|
0
|
0
|
508
|
POST
|
Hi Thanks Its only a problem from my WPF application Here are an image showing the same mapserver service in a Silverlight and a wpf application its only in the silverlight the map shows up? I need to use the wpf for this project .. any idea on how to get the map to show in my application.. no exceptions are thrown and the layer Initializes? When i work in Sillverlight i can't se the map when i debug only when i deploy the application to my local IIS and run the application as a Https:// site ..
... View more
02-15-2011
01:58 AM
|
0
|
0
|
508
|
POST
|
Hi Jennifer Thanks, now i prompt the user for credentials and sets the Credentials on the layer. The map Initializes with no exceptions but the map wont show up? The Service is secured with Windows Authentication as described in the link you posted. Any idea?
... View more
02-13-2011
10:00 PM
|
0
|
0
|
508
|
POST
|
Hi i'm having trouble getting my mapserver when the application runs the server returns 401 Not authorized.? Ive tried this: public MainWindow()
{
InitializeComponent();
Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
ArcGISDynamicMapServiceLayer layer = new ArcGISDynamicMapServiceLayer()
{
Url = "https://validurl/",
ID = "grundkort"
};
layer.InitializationFailed += new EventHandler<EventArgs>(layer_InitializationFailed);
AddLayerWithCredentials(layer);
}
private void AddLayerWithCredentials(ArcGISDynamicMapServiceLayer layer)
{
WebClient challengeRequest = new WebClient();
challengeRequest.DownloadStringCompleted += (sender, args) =>
{
map.Layers.Add(layer);
};
challengeRequest.DownloadStringAsync(new Uri(layer.Url));
}
void layer_InitializationFailed(object sender, EventArgs e)
{
Layer layer = sender as Layer;
string exceptionMessage = layer.InitializationFailure.Message;
MessageBox.Show(exceptionMessage);
}
The user logged in is a member of agsusers on my Server. Any idea?
... View more
02-11-2011
02:36 AM
|
0
|
8
|
1234
|
POST
|
Hi Morten THANKS a lot, that was a fantastic explanation, no I have a basic understanding of how I works �? Have a nice day.
... View more
01-26-2011
09:21 PM
|
0
|
0
|
438
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|