POST
|
I am trying to get https://developers.arcgis.com/javascript/jssamples/portal_oauth_inline.html to work on our own web server. Everything works fine in Chrome after I changed the portalUrl to be the one for our organisation, but it doesn't work in Internet Explorer 11. I do get a successful login but the result page shows a blank page. In the Console I get this error: I have tried to use the resource proxy, but that gave me a syntax error because the response was HTML instead of JSON. Hope you can help me out. Regards Jonas
... View more
02-24-2015
01:31 PM
|
0
|
0
|
3107
|
POST
|
I fixed the problem by using the IP address of the ArcGIS Server when configuring Web Adaptor. However, I don't know if this will lead to other problems. /Jonas
... View more
05-27-2013
04:08 AM
|
0
|
0
|
834
|
POST
|
When using WMTSLayer in v3.3 I can't set the initial extent. Using the "center" option gives the same result. I am getting this really weird log entry in the console: [HTML]Map: Geometry (wkid: 4326) cannot be converted to spatial reference of the map (wkid: 4326)[/HTML] Here is my code:
var map;
require(["esri/map", "esri/layers/wmts", "dojo/parser", "dijit/layout/BorderContainer",
"dijit/layout/ContentPane", "dojo/domReady!"], function (myMap, wmts, parser) {
parser.parse();
esri.config.defaults.io.proxyUrl = "proxy/proxy.ashx";
map = new esri.Map("map", {
extent: new esri.geometry.Extent(-166.27, -95.74, 166.67, 5.54, new esri.SpatialReference({ "wkid": 4326 }))
});
var layerInfo = new esri.layers.WMTSLayerInfo({
identifier: "world",
tileMatrixSet: "EPSG:4326",
format: "gif"
});
var options = {
serviceMode: "KVP",
layerInfo: layerInfo
};
var wmtsLayer = new esri.layers.WMTSLayer("http://v2.suite.opengeo.org/geoserver/gwc/service/wmts",options);
map.addLayer(wmtsLayer);
});
I guess this must be a bug. The problem is not present in v2.8, which I am currently updating from.
... View more
01-24-2013
03:03 AM
|
0
|
12
|
14702
|
POST
|
I am having the same problem and have solved it in another way. I am not sure which one I prefer. My approach is to subclass esri.layers.WMSLayer and override getImageUrl:
getImageUrl: function (extent, width, height, callback) {
// If applicable prefix with proxy url to let proxy handle authentication
if (esri.config.defaults.io.proxyUrl && !this.proxyUrlPrefixed) {
this.getMapURL = esri.config.defaults.io.proxyUrl + "?" + this.getMapURL;
this.proxyUrlPrefixed = true;
}
this.inherited(arguments);
}
The same approach can be used for WMTSLayer by overriding getTileUrl. Does anyone know the reason why WMSLayer and WMTSLayer do not call the proxy when requesting GetMap and GetTile?
... View more
01-14-2013
10:15 PM
|
0
|
0
|
479
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|