POST
|
I tried to disable nodeIntegration in electron\src\index.ts with the following code: const myCapacitorApp = createCapacitorElectronApp({
mainWindow: {
windowOptions: {
webPreferences: {
nodeIntegration: false
}
}
}
}); However, that had no effect on the errors and map behavior. Is there another way to do that? In a comment at https://github.com/Esri/jsapi-resources/issues/251, there's a suggestion set configurations.production.sourceMaps to true in angular.json. I tried that, but it seemed to have no effect.
... View more
01-21-2021
08:57 AM
|
0
|
0
|
1024
|
POST
|
Thanks for the reply. I have tried but failed to create a pure Electron app that uses ArcGIS ES modules, because I can't seem to use ES modules in an Electron app. When I try to import them I get errors related to using import statements outside a module. I've tried to use Babel and other solutions I've found online, but no luck. The Ionic/Angular/Electron app, though, does at least run and tries to load the map. That Ionic/Angular/Electron app referred to above is at https://github.com/brentgti/IonicUiEsriPoc. The map is loaded in https://github.com/brentgti/IonicUiEsriPoc/blob/main/src/app/home/home.page.ts. To build and run it as a desktop app, use "ionic build && npx cap copy @capacitor-community/electron" and "npx cap open @capacitor-community/electron" respectively. With the current "gray" basemap you'll see no map when the app loads (which takes several seconds, after which time you should see 2 blue buttons). If you change the basemap to "topo-vector" a map will appear, presumably because it is a vector map (at least partly).
... View more
01-19-2021
03:08 PM
|
0
|
0
|
1057
|
POST
|
I'm trying to create an Ionic-Angular application with a map on its main page, using ArcGIS ES Modules. I've used the code from https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/src/app/app.component.ts to display the map. This works OK when I build and run the app in Android. When I try to build and run a desktop app using Electron, though, the code errors here: if (t = h.url, "image" === (s = h.requestOptions).responseType) {
if (Object(_core_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])("host-webworker") || Object(_core_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])("host-node"))
throw M("request:invalid-parameters", new Error("responseType 'image' is not supported in Web Workers or Node environment"), h) The code to get the map is in the only layer I know that will result in it showing up in the app UI, but it seems that somehow when trying to run it in an Electron window it's running in an unsupported environment. What exactly is happening here and are there any ideas on how to resolve it?
... View more
01-19-2021
10:41 AM
|
0
|
4
|
1103
|
POST
|
HI, Thanks for the reply. I'm not sure how the server handles the GeoJSON it receives, and I think that's part of the problem. The initial post request caused the fields in the screenshot of the GeoEvent definition to be created. I suppose my expectation would be that there'd be server-side code to traverse the JSON and pull out the individual key-value pairs, though that still leaves the question of how it would represent the hierarchy in the structure, e.g., if "name" is a column heading in the csv file and "minneapolis" a value in that column, where does "place" go? My question now is, do I have to modify the GeoJSON to flatten it out, or specify the fields I want in the GeoEvent definition differently to get what I want, or will either, both, or neither be required to achieve what I want? There's example GeoJSON in the page to which I linked, but it's a lot simpler than what I'm sending. Are there other examples I can look at that you're aware of? I was able to stick arbitrary key-value pairs in a "properties" section of GeoJSON and have those get populated in the generated csv (after a new GeoEvent definition was generated with the first post request with the new GeoJSON), so I know that works, but again, I'd prefer not to have to do a lot of reconstructing or reformatting of the GeoJSON, unless it's necessary.
... View more
12-23-2020
07:42 AM
|
0
|
1
|
1243
|
POST
|
Hi, thanks for the reply. I have been using Postman. I have not been specifying f=geojson. I just added that now, but it's not changing the result.
... View more
12-23-2020
07:24 AM
|
0
|
0
|
1247
|
POST
|
We followed Receive GeoJSON on a REST Endpoint to send weather data to ArcGIS as feature data. Unfortunately, the data is parsed they way we hope or expect. We've tried to have features updated or created when the data is received, and also just converted to csv in a file. Here's what we're sending: {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-93.265,
44.9778
]
},
"properties": {
"loc": {
"lat": 44.9778,
"long": -93.265
},
"place": {
"name": "minneapolis",
"state": "mn",
"country": "us"
},
"periods": [
{
"timestamp": 1608324300,
"dateTimeISO": "2020-12-18T14:45:00-06:00",
"tempC": 5.44,
"tempF": 41.79,
"feelslikeC": 4.31,
"feelslikeF": 39.77,
"dewpointC": -0.59,
"dewpointF": 30.93,
"humidity": 65,
"pressureMB": 1014,
"pressureIN": 29.94,
"windDir": "SSW",
"windDirDEG": 194,
"windSpeedKTS": 3.5,
"windSpeedKPH": 6.48,
"windSpeedMPH": 4.03,
"windGustKTS": 12.12,
"windGustKPH": 22.45,
"windGustMPH": 13.95,
"precipMM": 0,
"precipIN": 0,
"snowCM": 0,
"snowIN": 0,
"visibilityKM": 24.135,
"visibilityMI": 14.997,
"sky": 100,
"cloudsCoded": "OV",
"weather": "Cloudy",
"weatherCoded": "::OV",
"weatherPrimary": "Cloudy",
"weatherPrimaryCoded": "::OV",
"icon": "cloudy.png",
"solradWM2": 49,
"uvi": 0,
"isDay": true
}
],
"profile": {
"tz": "America/Chicago",
"tzname": "CST",
"tzoffset": -21600,
"isDST": false,
"elevFT": null,
"elevM": null
}
}
}
]
} Here are the fields that got created the first time that we sent a post to the endpoint: Unfortunately, only Geometry actually gets populated with data when a post is sent. The data is the lat and long, in quotes, separated by commas. None of the other fields shown above show any data. Do we need to define fields manually (using the "New Field" button in the screen capture above), perhaps whatever of the subfields in the geoJSON we want, e.g., tempF in the periods array? I'm now also noticing the Tags column in the above, but don't know what they mean. The geoJSON as shown above is coming from another API, unaltered, so not having to process/reformat it ourselves before sending it on to ArcGIS would make everything simpler, though we can do that, if necessary.
... View more
12-22-2020
03:58 PM
|
0
|
5
|
1272
|
POST
|
Never mind 🙂. mapView.on("click", executeIdentifyTask) worked (what didn't work is trying to format that code as inline code here--maybe it's my browser?). I also changed back to 4.11, so apparently the code I had didn't require Dojo at all, with that one minor change, as far as I can tell. (Everything seems to be working OK, but it's possible I'm missing something.)
... View more
11-24-2020
04:15 PM
|
0
|
0
|
1530
|
POST
|
Hi @Noah-Sager, Thanks for your reply. I have existing code that originally used API version 4.11. I have a require statement that includes "dojo/on" and "dojo/domReady". I changed my code to reference 4.17 and commented out the dojo references in the require statement, and not surprisingly I get fatal errors, though it's not obvious to me how they're related to dojo, given where the errors are occuring. I do have the following statement in my code, though it's not identified as the line where an error is occurring: on(mapView, "click", executeIdentifyTask); I tried mapView.addEventListener("click", executeIdentifyTask); and my code still runs, but I can no longer click on my map and get a popup with additional feature information. Everything works fine with none of the above changes, by the way. Assuming we want to get rid of Dojo, any advice, general or specific, on doing so? It would be great if there is some sample Esri code that shows an implementation with Dojo and without it. I am pretty green when it comes to web development, as you can probably tell.
... View more
11-23-2020
04:19 PM
|
0
|
1
|
1535
|
POST
|
It seems that in the past Dojo has been necessary for using the ArcGIS API, at least for certain functionality. Is this still true, or is it possible to do everything that one might want to without it? Are there any reasons to continue to use it, aside from the obvious ones that Dojo can provide generally, as opposed to specifically for ArcGIS? Edit: I just saw this: "We removed Dojo’s declare module, and pretty much stopped using Dojo altogether" from https://community.esri.com/t5/arcgis-api-for-javascript-blog/bg-p/arcgis-api-for-javascript-blog. Responses are still welcome, though, if there's any nuance to that statement to know about or anything else to consider re. Dojo.
... View more
11-12-2020
12:40 PM
|
1
|
3
|
1592
|
POST
|
I've create an app in which I want to get location from a GNSS receiver connected over Bluetooth. I've figured out how to set the Android mock location using the location data coming from the receiver, but I'd rather do something more direct, just in my app, especially since switching back and forth between using the receiver and using Android's on-board location requires jumping through a lot of hoops, including some that can't be done programmatically. Based on what I've found in this forum, it doesn't seem that I'm able to use the ArcGIS SDK to do what I want, but please confirm that and let me know of any other suggestions.
... View more
09-08-2020
02:45 PM
|
0
|
0
|
368
|
POST
|
Figured out how we can change the results in the backend from a choice selection result label by altering the feature service through the Data>Fields option: Then Then Note that this only works for Select One Choices, not Select Multiples. Thanks!
... View more
02-11-2020
06:55 AM
|
0
|
0
|
286
|
POST
|
I am noticing that for a survey I created, the results in the backend for my choice selection is displaying the Label result and not the Name result. Here is an example: The image below is a copy of my spreadsheet's "Choice Tab," where you can see two choices for "status," pass and fail. In the name field, I have pass and fail as my two options, with the label coloring them so Pass is green and Fail is red in my survey. However, in the backend, the results for my choice selection show up like this: Why isn't it using the results from the name field like it does for every other question in my survey? Is there some kind of default? Why would it use the label result in some cases and the name result in others? Thanks James Tedrick Survey123 Geonet Survey123 Geonet #survey123 autoselection #survey123selection
... View more
02-07-2020
08:51 AM
|
0
|
1
|
328
|
POST
|
I just had the same issue where an image wasn't showing up in a survey on either my iPad or iPhone (both operating on the latest version of iOS 13.3). I changed the extension from .jpg to .JPG and it worked! I find this strange though because some old surveys I have published use the .jpg extension and the image shows up fine in the survey on both iOS devices. Maybe someone from the Survey123 team can chime in? survey123. survey123media survey123 note James Tedrick
... View more
12-30-2019
08:21 AM
|
0
|
1
|
835
|
POST
|
From inspecting the sublayers I get in the MapImageLayer I get from my service, it seems that the renderer associated with each does not contain the information (e.g., url or base64 string) for any images associated with the sublayers (in fact, the renderer appears to be null, even though everything draws properly). Apparently I can get that information by using Request or maybe in a Legend, but I'd like to know if the information isn't in the sublayer object when the mapimagelayer is retrieved and I'm just not looking for it in the right place or at the right time. Here's what I see for one layer (that I know has an image associated with it that appears on my map and my legend) when I inspect it: definitionExpression: (...) id: (...) labelingInfo: (...) labelsVisible: (...) layer: (...) legendEnabled: (...) listMode: (...) maxScale: (...) minScale: (...) opacity: (...) parent: (...) popupEnabled: (...) popupTemplate: (...) renderer: null source: (...) sublayers: (...) title: "Compressor Station" url: (...) visible: (...) _sublayersHandles: null constructed: (...) destroyed: (...) initialized: (...) __accessor__: b {host: {…}, _origin: 6, cursors: {…}, ctorArgs: null, destroyed: false, …} __proto__: Object
... View more
06-04-2019
08:00 AM
|
0
|
1
|
366
|
POST
|
I am also struggling through the same issue. I am trying to publish a survey via Survey123 Connect to my Enterprise Portal (v.10.5) and keep getting the same error message. Thanks!
... View more
05-22-2019
06:33 AM
|
1
|
1
|
1267
|
Title | Kudos | Posted |
---|---|---|
1 | 02-13-2018 06:46 AM | |
1 | 11-12-2020 12:40 PM | |
1 | 10-04-2018 02:09 PM | |
1 | 05-22-2019 06:33 AM | |
1 | 02-28-2019 01:47 PM |
Online Status |
Offline
|
Date Last Visited |
02-01-2021
11:33 AM
|