POST
|
In fact , I have resolved the problem by putting the URL of page requesting the service inside the proxy.config file using option allowedReferers. allowedReferers="*" is not working for me, I had to replace * by my page url. Maxim, Thanks you guys trying helping me.
... View more
08-20-2014
10:37 PM
|
0
|
0
|
587
|
POST
|
Hi thanks , My proxy.config is configured like you suggested, but still doesn't work. still forbiden acces to http://localhost:8080/Java/proxy.jsp?http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StateCityHighway_USA/MapServer/WMSServer?SERVICE=WMS&REQUEST=GetCapabilities when executing JavaScript code. But when I copy past this url to the browser , it redirect me to the site. Any idea why it is not working in a javascript code ? Thanks He is my code in JS: esriConfig.defaults.io.proxyUrl = "http://localhost:8080/Java/proxy.jsp"; map = new Map("map", { basemap: "streets", center: [-98, 37], zoom: 5 }); var wmsLayer = new WMSLayer("http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StateCityHighway_USA/MapServer/WMSServer", { format: "png", visibleLayers: [2] }); map.addLayer(wmsLayer);
... View more
08-20-2014
10:24 PM
|
0
|
1
|
587
|
POST
|
Hi,Hi, Hi, it is now working with tomcat, when typing the folowwing URL in the browser it forwads me the site http://localhost:8080/Java/proxy.jsp?http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StateCityHighw… But when using the API , it tells me that the ressource is forbidden (403 errror code), here is my config esriConfig.defaults.io.proxyUrl = "http://localhost:8080/Java/proxy.jsp" var wmsLayer = new WMSLayer("http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StateCityHighway_USA/MapServer/WMSServer", { format: "png", visibleLayers: [2] }); map.addLayer(wmsLayer); Any idea ? Thanks
... View more
08-20-2014
03:20 PM
|
0
|
3
|
587
|
POST
|
Hi, When I enter http://localhost:8080/Java/proxy.jsp?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson It says : The proxy.config file does not exist at application root, or is not readable.
... View more
08-20-2014
07:50 AM
|
0
|
0
|
587
|
POST
|
Hi, I have some issues when using esri proxy Java Version, Releases · Esri/resource-proxy · GitHub After deploying it on tomcat , it still telling me that proxy.config file is not readable or it doesn't exist. I am sure that the file exist at this location, any idea ? Thanks,
... View more
08-20-2014
02:55 AM
|
0
|
6
|
2002
|
POST
|
Hi, thanks for your response, I fact my question is stupid. The wms protocole is the one how is calling export function of the rest api each time a new tile is needed.
... View more
08-15-2014
08:57 AM
|
0
|
0
|
203
|
POST
|
Hi, I am trying to consume an ARcGis MapServer resource using the following url. http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export?LAYERS=0… But I am getting an image displayed in the top lef corner of my map. Is it possible to get this resource using wms protocole and export functionnality of the REST API ? Thanks
... View more
08-15-2014
08:40 AM
|
0
|
2
|
726
|
POST
|
Hi, I need some URLs to Esri resources using WFS protocole. Thanks,
... View more
08-14-2014
04:44 AM
|
0
|
3
|
961
|
POST
|
Hi, I am looking for a valide json stream as it is generated by Arcgis Server. The following link gives geometry definition of json http://resources.arcgis.com/en/help/rest/apiref/geometry.html Add like to have an example of a service , I can sent a request an it gives me back a collection of geometries under esri json format; Thanks, Maxim
... View more
08-13-2014
01:20 AM
|
0
|
1
|
763
|
POST
|
Ok, I tried to use directely tb.remove() but I am getting the exception that remove is not defined. So after seaching a while in the debugger options I found the remove funtion you suggested in onDrawEnd.after.remove(); Thanks Robert,
... View more
07-28-2014
08:33 AM
|
0
|
0
|
439
|
POST
|
Hi, He is my problem, var tb = new Draw(map); tb.on("draw-end", lang.hitch(map, getAreaAndLength)); How can I later deactivate this handler ? I wante something like : tb.on("draw-end").set(null) ?? This is because I have to switch between two handlers, IF set directely the second handler it still call the first so finally , it calls the two handlers. Thanks, Maxim
... View more
07-28-2014
05:58 AM
|
0
|
5
|
745
|
POST
|
apparently the error is generated by this script : js.arcgis.com/3.9/js/esri/geometry/Extent.js:30
... View more
07-17-2014
02:36 AM
|
0
|
0
|
154
|
POST
|
Hi, I am using the ArcGis Api for JavaScript , I have a map and two layers: 1 : esri/layers/KMLLayer 2 : esri/layers/ArcGISTiledMapServiceLayer I am trying to reorder the two layer on a button click : I am procedeeding like this : - remove the two layer - reorder my layers inside an array - at this point the map contains no layer and the array contains the exact order of the layers - adding two layers to the map Unfortunately I am getting this error in chrome : Error : Inspected target has crashed . Once it reloads we will attach to it automatically. I tryed the same with 2 esri/layers/ArcGISTiledMapServiceLayer every thing works fine. Any idea of what is causing me this issue ? Thanks
... View more
07-17-2014
02:32 AM
|
0
|
1
|
562
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|