|
POST
|
I'm not worried about displaying maps or views. I just want to have our geoprocessing tools accessible in a mobile app.
... View more
12-11-2017
01:58 PM
|
0
|
2
|
2500
|
|
POST
|
I'm looking at React Native because it's JavaScript based (which I can work with) and the apps are supposed to work with iOS and Android.
... View more
12-11-2017
01:08 PM
|
1
|
0
|
2500
|
|
POST
|
I've developed several web apps using the REST services (maps and geoprocessing tools) on our ArcGIS Server. My company wants to turn some of these into mobile apps. I can't use App Studio for ArcGIS because the vendor we are contracting with has informed us that they won't accept apps developed with App Studio. They are suggesting we use React Native to develop our apps. Is anybody using ArcGIS JS and React Native together to create mobile apps? I've seen some examples of basic ESRI maps in React, but I can't find much with React Native. I'm a total noob to mobile app development, so I'm just trying figure out a possible workflow and exactly what I'll need as far as SDKs.
... View more
12-11-2017
11:30 AM
|
0
|
6
|
5511
|
|
POST
|
I tried this, with the evt being the click. The console logged "null." var extent = graphicsUtils.graphicsExtent(evt.graphics);
console.log(extent); If I do this, the console logs the object ID: var Id = evt.graphic.attributes["OBJECTID"]
console.log(Id);
... View more
12-07-2017
09:59 AM
|
0
|
13
|
2995
|
|
POST
|
I tried this and it didn't work. I need to find the extent of the layers within the dynamic map service. Layer.on("click", function(){
var layerExtent = graphicsUtils.graphicsExtent(Layer.graphics);
map.setExtent(layerExtent, true);
});
... View more
12-07-2017
09:43 AM
|
0
|
15
|
2995
|
|
POST
|
I've found some examples of what I want to do, but none of them seem to work. I have a dynamic map service layer that is several polygon regions. When the user clicks on a region, I want the map to zoom to the extent of the region. I tried map.centerAndZoom(feature,1) and it did zoom, but the map went blank.
... View more
12-06-2017
02:04 PM
|
0
|
17
|
5881
|
|
POST
|
I have a script that makes charts. I've been running this script for many months across multiple computers on our network with different versions of Python with no trouble. Today I'm getting this error: UserWarning: findfont: Font family [u'Bitstream Vera Sans'] not found. Falling back to DejaVu Sans. This is screwing up my charts. I've tried deleting the matplotlib font cache file, and that hasn't helped. That's the only solution I've been able to find online. I haven't added any fonts or changed anything else on the system or in the script. I also did a disk cleanup and restart and it didn't help. This is happening on a Windows 7 machine running Python 2.7.8.
... View more
11-29-2017
01:02 PM
|
0
|
9
|
13116
|
|
POST
|
Hi Robert, I'm working with Randy on this project. We definitely don't want to intersect the data. We just want to show visually where they overlap, and display attributes from both layers. Would it be possible to merge them into a multi-part polygon and retain both boundaries?
... View more
11-20-2017
10:41 AM
|
0
|
0
|
921
|
|
POST
|
I think I just figured it out. The arcgis server under our default site in IIS had the custom header, even though I had commented it out in the arcgis Web.config file! I removed the custom header from there and added it to the default site, and I'm not getting any errors. I'll keep testing but I think it works.
... View more
11-08-2017
09:52 AM
|
6
|
1
|
31894
|
|
POST
|
I added the custom header to the server (IIS 8 Manager > default website > HTTP response headers). I still get "The 'Access-Control-Allow-Origin' header contains multiple values 'null, *', but only one is allowed. Origin 'null' is therefore not allowed access." I removed the custom header from every web.config file I could find (There are three: C://webroot/DotNet/Web.config, C://webroot/resource-proxy-master/DotNet/Web.config, C://webroot/arcgis/Web.config). I still get the error. The only thing that works is the public JS CORS API I found at cors-anywhere.herokuapp.com. That server is not always available, though. I need to get this figured out before our website is live. Should I contact ESRI support? Here is the CORS anywhere function. Could I set something like this up on our own server? function() {
var cors_api_host = 'cors-anywhere.herokuapp.com';
var cors_api_url = 'https://' + cors_api_host + '/';
var slice = [].slice;
var origin = window.location.protocol + '//' + window.location.host;
var open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
var args = slice.call(arguments);
var targetOrigin = /^https?:\/\/([^\/]+)/i.exec(args[1]);
if (targetOrigin && targetOrigin[0].toLowerCase() !== origin &&
targetOrigin[1] !== cors_api_host) {
args[1] = cors_api_url + args[1];
}
return open.apply(this, args);
};
})();
... View more
11-08-2017
08:04 AM
|
0
|
0
|
10166
|
|
POST
|
That was one of the first things I tried. It didn't work.
... View more
11-08-2017
06:41 AM
|
0
|
2
|
10166
|
|
POST
|
My company is working to develop mobile apps based on the REST services (maps and geoprocessing tools) on our ArcGIS Server. The vendor we are contracting with has informed us that they won't accept apps developed with App Studio for ArcGIS. It's a government vendor, so I believe it's some kind of security issue. They are suggesting we use React Native to develop our apps. Will we be able to utilize our ArcGIS REST services in React Native?
... View more
11-07-2017
10:27 AM
|
0
|
2
|
756
|
|
POST
|
I have the same issues whether I test this in the browser on the server machine or a browser on another machine. I opened Chrome without web security. I didn't get any errors, but it is still not finding the existing report and returning it. I uncommented esriConfig.defaults.io.corsEnabledServers.push("ourserver.com") and nothing changed. I'm still getting the error "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." What I don't understand is why it needs an Access-Control-Allow-Origin header on an existing element on our web server (the PDF), but it has no problem returning the new PDF that is generated on the same server?
... View more
11-07-2017
07:01 AM
|
0
|
4
|
10165
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2019 09:21 AM | |
| 1 | 04-05-2019 04:21 PM | |
| 2 | 04-01-2019 10:11 AM | |
| 1 | 03-22-2019 09:30 AM | |
| 1 | 05-16-2019 08:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|