POST
|
I am having a problem with feature layer queryAttachments. When I query for Exif data with returnMetadata = true; Exif null is returned. I am using Typescript with ArcGIS-JS-API 4.11 Is there something else I need to do to Portal to make this work? const attachmentQuery = { objectIds: feature.getAttribute('OBJECTID'), returnMetadata: true }; return featureLayer.queryAttachments(attachmentQuery);
... View more
05-15-2019
12:00 PM
|
0
|
1
|
357
|
POST
|
I don't think so, but there is a third party shell component I did notice that when I collapse the browser horizontally the vertical scroll bars appear? When I manually place the widgets the scroll bars appear The only problem is the manual placement
... View more
01-07-2019
01:45 PM
|
0
|
1
|
527
|
POST
|
When I add a widget to my map the scroll bars do not display. I have tried a Legend widget, a Layer List widget, and used an Expand widget for the former. Am I missing something? ArcGIS JS Api 4.X, Angular Typescript, Chrome
... View more
01-07-2019
12:45 PM
|
0
|
3
|
639
|
POST
|
Thanks Undral, I am able to get to the attachments now. Will this code continue to work in 4.10? Are Related Features queried for in the same way?
... View more
11-06-2018
05:45 AM
|
0
|
1
|
869
|
POST
|
Thanks for the response Undral, I tried this code before I posted my question. When I use the code above the attachment does not accept the forEach I am using ArcGIS-js 4.9 Angular and Typescript, your test app is using ArcGIS 4.10 const attachment = attachments[objectId]; console.group('attachment for', objectId); attachment.forEach(element => {
... View more
11-05-2018
01:20 PM
|
0
|
3
|
869
|
POST
|
I have a Typescript SPA using ArcGIS JS Api 4.9. When I query the layer for attachments I receive a attachment info array with the correct values. When I try and display the items in the array I receive undefined? if (layer.capabilities.data.supportsAttachment) { const attachmentQuery = { objectIds: feature.getAttribute('OBJECTID') }; layer.queryAttachments(attachmentQuery).then((attachmentInfos: esri.AttachmentInfo[]) => { console.log('Attachment infos: ', attachmentInfos); console.log('Attachment 0: ', attachmentInfos[0]); for (let index = 0; index < attachmentInfos.length; index++) { const element = attachmentInfos[index]; console.log('Element: ', element); } attachmentInfos.forEach((attachment) => { console.log('Attachment: ', attachment.contentType); }); }); } The above code produces: Attachment infos: [object Object] app-survey-survey-module.js (4677,17) [object Object]: {3: Array} 3: Array 0: Object contentType: "application/pdf" globalId: "{108EB461-CA2B-4F31-8E59-3F20E32D3712}" id: 1 name: "141 Printer map.pdf" parentGlobalId: "{EEED886E-3700-47DF-98F6-341506BD33E0}" parentObjectId: 3 size: 2373144 url: "https://vmw-lsarcsrv.engineering.dom/server/rest/services/Novara_Survey_1/FeatureServer/3/3/attachments/1?token=fw7ceIigGDAdenbNniGeTdLgWi_cxNYQKx7hr_ZKTa__NocKctBbOFqL2XG-Zw3Erod22ZEOxzodFQRYQfCUm4V5zv2qnItQM6q2QyTQiO-0TY8VSe3q25Av3h8HftfWiaJzlChaMBqbXavgA2qGMd_Si7PmVHnuzSxhew90hoD-RHrmZ8X5YdB9t496cRwfTRS5smwl8qrzdRnfyZ8yVKPlU3_OUHOy19AC-611pK0h6aovIzPMjAwoHvwPVYq_sWi2or_kyQHkLksa6kvYp_IphsN4Uz5-p6vSEBWO02w." __proto__: Object length: "1" __proto__: Object Attachment 0: undefined
... View more
11-05-2018
11:06 AM
|
0
|
5
|
1050
|
POST
|
I have a javascript api map displaying in an Angular 6 application.. The webMap is displayed on a component and everything works as expected. When I move the webMap to a control that is then placed on the component the map no longer displays. Has anyone seen behavior like this? Is there something I need to do so the map displays?
... View more
10-30-2018
12:06 PM
|
0
|
0
|
585
|
POST
|
I am making token requests to the REST API on a Portal instance. What I notice is that the code succeeds in Chrome and Firefox, but only works in Edge occasionaly. Has anyone seen this behavior? private portalUrl = environment.portal_url; private authUrl = '/sharing/rest/oauth2/authorize'; private tokenUrl = '/sharing/rest/oauth2/token'; private clientId = environment.client_id; const headers = new HttpHeaders(); headers.append('Content-Type', 'application/X-www-form-urlencoded'); const oAuthData = new FormData(); oAuthData.append('client_id', oAuthParams.client_id); oAuthData.append('grant_type', oAuthParams.grant_type); oAuthData.append('redirect_uri', oAuthParams.redirect_uri); oAuthData.append('code', oAuthParams.code); return this.httpClient.post<T>(url, oAuthData, { headers: headers }) .pipe( catchError(this.handleError));
... View more
08-08-2018
05:26 AM
|
0
|
0
|
510
|
POST
|
It looks like it is a problem with Typings. The code works when casting directly: const featureLayer: esri.FeatureLayer = this.mapView.map.findLayerById('69bf94b82f1a4ff8b7afcf370b8c00db') as esri.FeatureLayer;
... View more
07-27-2018
08:10 AM
|
0
|
0
|
3194
|
POST
|
When I loop through the layers the type is feature Our C# code on Xamarin with the .Net API autocasts the same layer as expected.
... View more
07-26-2018
01:52 PM
|
0
|
1
|
3194
|
POST
|
I did try that and I get the same issue as when I loop through the Layer Collection FindLayerById returns a Layer and I don't know how to cast to a FeatureLayer Type 'Layer' is not assignable to type 'FeatureLayer'. Property 'capabilities' is missing in type 'Layer'.
... View more
07-26-2018
01:26 PM
|
0
|
3
|
3194
|
POST
|
Thanks for the response, I am using 4.8 and there is no getLayer method on the Map
... View more
07-26-2018
12:56 PM
|
0
|
5
|
3194
|
POST
|
I am a little stuck here and I hope someone can point me to the right place. Using the ArcGIS-js-api in Angular / Typescript I am able to display a WebMap via an internal Portal instance. I can access the Layers that the Map is composed of but I am unable to get the layer as a featureLayer. All of the examples I see are adding a featureLayer to the map. How can I get a featureLayer from the Map?
... View more
07-26-2018
11:04 AM
|
0
|
9
|
5076
|
POST
|
I am following the ESRI Loader example found here const [EsriMap, EsriMapView, Point] = await loadModules([ 'esri/Map', 'esri/views/MapView', 'esri/geometry/Point' ]); My question is: what is the preferred method to load Esri Modules that will be used in other methods; for example in a click event handler. Should the modules all be loaded at initialization? What is the best way to make modules available to other methods in the class? Should the modules be loaded in each method?
... View more
07-23-2018
09:39 AM
|
0
|
1
|
1941
|
POST
|
It seems to have found the objects but I have a new error: RROR Error: Uncaught (in promise): TypeError: Object doesn't support this action TypeError: Object doesn't support this action at Anonymous function (http://localhost:4200/main.js:642:13) at ZoneDelegate.prototype.invoke (http://localhost:4200/polyfills.js:2708:13) at onInvoke (http://localhost:4200/vendor.js:50015:17) at ZoneDelegate.prototype.invoke (http://localhost:4200/polyfills.js:2708:13) at Zone.prototype.run (http://localhost:4200/polyfills.js:2460:17) at Anonymous function (http://localhost:4200/polyfills.js:3194:17) at ZoneDelegate.prototype.invokeTask (http://localhost:4200/polyfills.js:2741:13) at onInvokeTask (http://localhost:4200/vendor.js:50006:17) at ZoneDelegate.prototype.invokeTask (http://localhost:4200/polyfills.js:2741:13) at Zone.prototype.runTask (http://localhost:4200/polyfills.js:2510:21)
... View more
07-09-2018
12:08 PM
|
0
|
0
|
532
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|