POST
|
When a user uses our IDP to log into Portal, they have access to other apps which their credentials allow. But if we log into another app that uses the ArcGIS Javascript API to access sources in Portal, they still get prompted for login credentials. Is there something simple that I'm missing that we need to do to ensure that HTTP requests to Portal are using the auth already provided?
... View more
08-22-2017
11:48 AM
|
1
|
1
|
710
|
POST
|
I found my problem. I had added my generic javascript object ("properties") as the tileInfo object, instead of creating a new TileInfo object from my properties. Wrong: new WebTiledLayer("https://template.url.com", { "tileInfo": tileInfoProperties }); Right: new WebTiledLayer("https://template.url.com", { "tileInfo": new TileInfo(tileInfoProperties) });
... View more
11-21-2016
10:43 AM
|
1
|
0
|
308
|
POST
|
When I try to create a WebTiledLayer and add it to the map, it creates the layer and adds it to the map just fine, but it doesn't display anything. When I watch the network traffic, no requests are made for that layer. If I pan and zoom, I can see the basemap and FeatureLayer requests as they are redrawn, but nothing for my WebTiledLayer. Is there a setting that might affect whether a WebTiledLayer needs to draw itself. Does the order in which it is added matter, or the index, or what type of other layers there are?
... View more
11-18-2016
11:38 AM
|
0
|
1
|
580
|
POST
|
TL;DR: What would cause the KML Utility service to return the error "File not found. Wrong url or out of memory." without even trying to download the file? When attempting to proxy a KMZ file provided by a user (user upload to an MVC web application), I cannot entice the KML utility service to actually request the file. I immediately get the error: {"error":{"code":400,"message":"File not found. Wrong url or out of memory.","details":[]}} I can retrieve the file by typing its URI into a browser, and I can view the request in the server logs. I can even attach a debugger and step through the GET request. But if I provide the URI to the KML utility service, I get an immediate response with no request made for the file. Do you know why this request is never made? Is it because the IIS web server and the Portal Server are on the same machine? Strangely, it seems that if I use the default kml utility service (which cannot authenticate with my sever), I get a blank (empty json object) response. The default utility service does seem to request the file, but it gets redirected to a login page which it may mistake for valid but meaningless XML.
... View more
10-27-2016
01:41 AM
|
1
|
1
|
897
|
POST
|
I found that I was able to use the kmlstring parameter for the KMLLayer by subclassing the KMLLayer class and changing the internal esriRequest to use the kmlstring instead of the URL. This allows me to load KML files provided by the users. It required only replacing this one line in one internal function. I just place the kmlString (the url-escaped contents of the KML file) into the options object in the constructor. define([
"dojo/_base/declare",
"dojo/_base/json",
"dojo/_base/lang",
"esri/request",
"esri/layers/KMLLayer"
], function ( declare, json, lang, esriRequest, KMLLayer) {
return declare(KMLLayer, {
_parseKml: function (map) {
var that = this;
this._fireUpdateStart();
this._io = esriRequest({
url: this.serviceUrl,
content: {
//url: this._url.path + this._getQueryParameters(map),
kmlString: this._options.kmlString,
model: "simple",
folders: "",
refresh: this.loaded ? !0 : void 0,
outSR: json.toJson(this._outSR.toJson())
},
callbackParamName: "callback",
load: function (response) {
that._io = null;
that._initLayer(response)
},
error: function (response) {
that._io = null;
var err = lang.mixin(Error(), response);
err.message = "Unable to load KML from text: " + that._options.kmlString + " " + (err.message || "");
that._fireUpdateEnd(err);
that.onError(err);
}
});
}
});
});
... View more
10-25-2016
11:43 AM
|
1
|
1
|
2137
|
POST
|
Sorry, I guess I'm not good at picking up the little details. This did work for me!
... View more
07-12-2016
10:49 AM
|
0
|
0
|
740
|
POST
|
Thanks for your help. It doesn't seem to work. Depending on how I try this -type:Web Mapping Application type:-Web Mapping Application type: -Web -Mapping -Application I can't make it filter out the web mapping applications while leaving the web maps. I seem to be missing the way that these filters actually work, since it appears to give me arbitrary results. Either it filters everything, (no results) or greatly limits the returned items, but mostly leaves out the web maps. The documentation for the REST API is not clear on how AND, OR, +, -, NOT, wildcards, etc. work. It says that the default is AND, but this does not seem to be the case, since it seems to find the word "map" and then includes anything that includes the single word, not just those that contain "web map". Or, maybe it includes automatic wildcards? Since the search term "map" finds "mapping". Possibly it searches all default fields instead of just the field I specify ("type", in this case). Can you shed some light on how this search actually works (or how it's supposed to work, at least)?
... View more
07-12-2016
10:24 AM
|
0
|
1
|
740
|
POST
|
I believe I spoke too soon. I actually do get back results for Web Maps, but I still get Web Mapping Applications which I do not want.
... View more
07-11-2016
02:25 PM
|
0
|
3
|
740
|
POST
|
Thanks for your response! It looks like you've provided parameters for some sort of REST call. I may have to go that route, but I am trying to use the esri/arcgis/Portal class provided in the Javascript API. The "q" I was referring to was the parameter to the queryItems method on that Portal object. There don't appear to be "t" or "focus" parameters to that particular method.
... View more
07-11-2016
01:01 PM
|
0
|
2
|
740
|
POST
|
When I use esri/arcgis/Portal to search for PortalItems, I specifically want to find Web Maps. When I try to provide "q":"Web Map", I get web mapping applications galore, and find no actual web maps. Is there a better way to discover web maps in Portal?
... View more
07-11-2016
12:07 PM
|
0
|
9
|
2743
|
POST
|
There are instructions for using the draw toolbar tools for desktops (tooltips that follow the mouse). Are there any such directions for mobile devices? Maybe they're not in the API, but can one of the developers tell me what they are? I am new to developing for mobile (and new to mobile devices, actually), so I am having trouble figuring out how to actually draw freehand, lines, polygons, extents, etc. on mobile devices.
... View more
05-24-2016
11:42 AM
|
0
|
1
|
1607
|
POST
|
I recently started seeing this, too. For me, it's coming from the World Street Map TileMap request. For some reason, this request has a jsonp callback added to it, but since it returns regular json (an object, not a function), it seems to fail trying to run it. We actually use the API v3.10, which gives a slightly different error, but when I tried it with v3.14, I get the same error as the OP. Kelly Hutchins, do you know what has changed recently in the World Streep Map map service?
... View more
10-29-2015
09:55 AM
|
0
|
1
|
492
|
POST
|
Did you ensure that your proxy.config includes a serverUrls entry for your print server?
... View more
08-24-2015
09:37 AM
|
0
|
0
|
523
|
POST
|
You might need to check your proxy config to make sure it's allowing requests from your app and to your print service. In the proxy.config file, make sure the allowedReferrers attribute includes your javascript application. By default, it uses *, meaning all apps from any location (including yours) can use the proxy. Next you want to make sure that if mustMatch is set to true, that you add your print server url into the list of serverUrls. Otherwise it'll block it. Actually, now that I think about it, that must've been your problem earlier, but I forgot about that, since I keep it disabled for testing -- in our dev environment only .
... View more
08-21-2015
11:24 AM
|
0
|
5
|
523
|
Title | Kudos | Posted |
---|---|---|
1 | 10-27-2016 01:41 AM | |
1 | 05-12-2015 11:58 AM | |
1 | 08-22-2017 11:48 AM | |
1 | 11-21-2016 10:43 AM | |
1 | 10-25-2016 11:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|